Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2013-02-21 05:09:05 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2013-02-21 05:09:05 +0400
commiteb789874eac3c81f412c738d12fa7bd2911decfd (patch)
tree2dceda13b4e3d71e955abc8ed95c89561990ae23 /moses/Timer.h
parenta0927b98e6c72568a1a423a976ea38ecdefa8d60 (diff)
delete CLOCK_MONOTONIC
Diffstat (limited to 'moses/Timer.h')
-rw-r--r--moses/Timer.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/moses/Timer.h b/moses/Timer.h
index be2fbc6ab..deefa4a71 100644
--- a/moses/Timer.h
+++ b/moses/Timer.h
@@ -22,11 +22,7 @@ private:
bool running;
// note: this only has the resolution of seconds, we'd often like better resolution
// we make our best effort to do this on a system-by-system basis
-#ifdef CLOCK_MONOTONIC
- struct timespec start_time;
-#else
time_t start_time;
-#endif
// in seconds
double elapsed_time();
@@ -37,12 +33,7 @@ public:
* using 'start' or 'restart'
*/
Timer() : running(false) {
-#ifdef CLOCK_MONOTONIC
- start_time.tv_sec = 0;
- start_time.tv_nsec = 0;
-#else
start_time = 0;
-#endif
}
void start(const char* msg = 0);