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:
authorNicola Bertoldi <bertoldi@fbk.eu>2014-01-15 19:42:02 +0400
committerNicola Bertoldi <bertoldi@fbk.eu>2014-01-15 19:42:02 +0400
commitbd83999264407dd7970736ee3e70a6b39fb19014 (patch)
tree1a0a0d9bab2b8caf853c301187beb637b0a1af61 /moses/Timer.cpp
parenta098550f33dd1eead0e72a98a4822ce924841550 (diff)
beautify
Diffstat (limited to 'moses/Timer.cpp')
-rw-r--r--moses/Timer.cpp5
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;
}