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:
authorDavid Madl <git@abanbytes.eu>2015-11-10 17:01:05 +0300
committerDavid Madl <git@abanbytes.eu>2015-11-17 19:15:13 +0300
commit3b6393094394cd19eee61b64e467b055a88033d4 (patch)
tree7f7b2afe19ae7a30a85556e7263b7608098fe19e /moses/ExportInterface.cpp
parent0dd6c31f638de16bd9dd6abb3113e15b719dce2c (diff)
move global Timer to Timer.h
Move ResetUserTime(), PrintUserTime(), GetUserTime() to Timer.h Do not reset timer in StaticData.
Diffstat (limited to 'moses/ExportInterface.cpp')
-rw-r--r--moses/ExportInterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/ExportInterface.cpp b/moses/ExportInterface.cpp
index 0ac1eaed1..cf0ba1363 100644
--- a/moses/ExportInterface.cpp
+++ b/moses/ExportInterface.cpp
@@ -84,6 +84,7 @@ SimpleTranslationInterface::SimpleTranslationInterface(const string &mosesIni):
cerr << "Error; Cannot load parameters at " << mosesIni<<endl;
exit(1);
}
+ ResetUserTime();
if (!StaticData::LoadDataStatic(&m_params, mosesIni.c_str())) {
cerr << "Error; Cannot load static data in file " << mosesIni<<endl;
exit(1);
@@ -317,6 +318,7 @@ int decoder_main(int argc, char const** argv)
// initialize all "global" variables, which are stored in StaticData
// note: this also loads models such as the language model, etc.
+ ResetUserTime();
if (!StaticData::LoadDataStatic(&params, argv[0]))
exit(1);