Skip to content
Snippets Groups Projects
Commit 9bf0b6d8 authored by huangruizhe's avatar huangruizhe Committed by Daniel Povey
Browse files

[src] Fix Windows build problem (timer.h) (#2888)

parent 4b149672
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ class Timer { ...@@ -53,7 +53,7 @@ class Timer {
private: private:
LARGE_INTEGER time_start_; LARGE_INTEGER time_start_;
}; };
}
#else #else
#include <sys/time.h> #include <sys/time.h>
...@@ -88,6 +88,8 @@ class Timer { ...@@ -88,6 +88,8 @@ class Timer {
struct timezone time_zone_; struct timezone time_zone_;
}; };
#endif
class Profiler { class Profiler {
public: public:
// Caution: the 'const char' should always be a string constant; for speed, // Caution: the 'const char' should always be a string constant; for speed,
...@@ -109,7 +111,5 @@ class Profiler { ...@@ -109,7 +111,5 @@ class Profiler {
} // namespace kaldi } // namespace kaldi
#endif
#endif // KALDI_BASE_TIMER_H_ #endif // KALDI_BASE_TIMER_H_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment