Merge branch 'savecomputingtime' into 'master'

Save total computing time into oo_

See merge request Dynare/preprocessor!32
issue#70
Sébastien Villemot 2021-01-28 15:45:31 +00:00
commit ce09f6620a
1 changed files with 2 additions and 1 deletions

View File

@ -1093,7 +1093,8 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
if (!notime)
mOutputFile << endl << endl
<< "disp(['Total computing time : ' dynsec2hms(toc(tic0)) ]);" << endl;
<< "oo_.time = toc(tic0);" << endl
<< "disp(['Total computing time : ' dynsec2hms(oo_.time) ]);" << endl;
if (!no_warn)
{