From a8580258a1aa4c3196824ad160d261958f35dc7a Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Sat, 10 Oct 2015 11:13:13 +0200 Subject: [PATCH] changed Dynare timer to local timer --- preprocessor/ModFile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index 06e9f19a4..0e729b8f7 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -584,7 +584,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo else if (clear_global) mOutputFile << "clear M_ options_ oo_ estim_params_ bayestopt_ dataset_;" << endl; - mOutputFile << "tic;" << endl + mOutputFile << "tic0 = tic;" << endl << "% Save empty dates and dseries objects in memory." << endl << "dates('initialize');" << endl << "dseries('initialize');" << endl @@ -804,7 +804,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo config_file.writeEndParallel(mOutputFile); mOutputFile << endl << endl - << "disp(['Total computing time : ' dynsec2hms(toc) ]);" << endl; + << "disp(['Total computing time : ' dynsec2hms(toc(tic0)) ]);" << endl; if (!no_warn) {