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:
authorKenneth Heafield <github@kheafield.com>2014-01-02 01:19:06 +0400
committerKenneth Heafield <github@kheafield.com>2014-01-02 01:19:06 +0400
commit732a1b074426352498fc99459ae8499d95690084 (patch)
tree56a06f19e341260128faf60743e84506943e9c07 /moses/Timer.h
parent18aaf4750a11f7a903a143b83f51eb34323613ea (diff)
KenLM 85c82bd, revamp Moses timer to have more precision
Diffstat (limited to 'moses/Timer.h')
-rw-r--r--moses/Timer.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/moses/Timer.h b/moses/Timer.h
index a6bd0e91a..e4da7fece 100644
--- a/moses/Timer.h
+++ b/moses/Timer.h
@@ -22,15 +22,12 @@ 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
- time_t start_time;
-
- // in seconds
- double elapsed_time();
+ double start_time;
public:
/***
* 'running' is initially false. A timer needs to be explicitly started
- * using 'start' or 'restart'
+ * using 'start'
*/
Timer() : running(false) {
start_time = 0;