diff --git a/ModFile.cc b/ModFile.cc
index 5a9699e01fb6a8cca6ec15edef0379c2452f7344..d90a704d7ced6a7ebe0824fce8748408891e49a0 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -195,6 +195,6 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
   mOutputFile << "save('" << basename << "_results.mat', 'oo_');" << endl;
   mOutputFile << "diary off" << endl;
 
-  mOutputFile << endl << "disp(['Total computing time : ' sec2hms(toc) ]);" << endl;
+  mOutputFile << endl << "disp(['Total computing time : ' dynsec2hms(toc) ]);" << endl;
   mOutputFile.close();
 }