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-12-13 14:52:47 +0300
committerNicola Bertoldi <bertoldi@fbk.eu>2014-12-13 14:52:47 +0300
commite4eb201c52be74fee74399a6f35fcbe8eb85d834 (patch)
tree7792ef96d63262f6e28f1857741e1162c7dccbc4 /moses/Timer.cpp
parentcea2d9d8bb34a81660974cae20d66aefec4e0468 (diff)
parenta0b6b6a341e74b47bbef4652ad7fd928cf91e17c (diff)
merged master into dynamic-models and solved conflicts
Diffstat (limited to 'moses/Timer.cpp')
-rw-r--r--moses/Timer.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/moses/Timer.cpp b/moses/Timer.cpp
index 5f8508ab7..6128ab885 100644
--- a/moses/Timer.cpp
+++ b/moses/Timer.cpp
@@ -2,6 +2,7 @@
#include <iomanip>
#include "Util.h"
#include "Timer.h"
+#include "StaticData.h"
#include "util/usage.hh"
@@ -30,7 +31,7 @@ double Timer::get_elapsed_time() const
void Timer::start(const char* msg)
{
// Print an optional message, something like "Starting timer t";
- if (msg) TRACE_ERR( msg << std::endl);
+ if (msg) VERBOSE(1, msg << std::endl);
// Return immediately if the timer is already running
if (running && !stopped) return;
@@ -52,7 +53,7 @@ void Timer::start(const char* msg)
void Timer::stop(const char* msg)
{
// Print an optional message, something like "Stopping timer t";
- if (msg) TRACE_ERR( msg << std::endl);
+ if (msg) VERBOSE(1, msg << std::endl);
// Return immediately if the timer is not running
if (stopped || !running) return;
@@ -70,10 +71,10 @@ void Timer::stop(const char* msg)
void Timer::check(const char* msg)
{
// Print an optional message, something like "Checking timer t";
- if (msg) TRACE_ERR( msg << " : ");
+ if (msg) VERBOSE(1, msg << " : ");
-// TRACE_ERR( "[" << std::setiosflags(std::ios::fixed) << std::setprecision(2) << (running ? elapsed_time() : 0) << "] seconds\n");
- TRACE_ERR( "[" << (running ? get_elapsed_time() : 0) << "] seconds\n");
+// VERBOSE(1, "[" << std::setiosflags(std::ios::fixed) << std::setprecision(2) << (running ? elapsed_time() : 0) << "] seconds\n");
+ VERBOSE(1, "[" << (running ? get_elapsed_time() : 0) << "] seconds\n");
}
/***