diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
commit | bd83999264407dd7970736ee3e70a6b39fb19014 (patch) | |
tree | 1a0a0d9bab2b8caf853c301187beb637b0a1af61 /moses/Timer.cpp | |
parent | a098550f33dd1eead0e72a98a4822ce924841550 (diff) |
beautify
Diffstat (limited to 'moses/Timer.cpp')
-rw-r--r-- | moses/Timer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/Timer.cpp b/moses/Timer.cpp index 75f4154ec..5f8508ab7 100644 --- a/moses/Timer.cpp +++ b/moses/Timer.cpp @@ -10,7 +10,7 @@ namespace Moses /*** * Return the total wall time that the timer has been in the "running" - * state since it was first "started". + * state since it was first "started". */ double Timer::get_elapsed_time() const { @@ -39,8 +39,7 @@ void Timer::start(const char* msg) if (stopped) { start_time = util::WallTime() - (stop_time - start_time); stopped = false; - } - else { + } else { start_time = util::WallTime(); running = true; } |