Allow user to access timer directly

parent 9bcac1fa
...@@ -477,6 +477,16 @@ class tools::Logger { ...@@ -477,6 +477,16 @@ class tools::Logger {
<< timer.at(i_name) << " seconds"<< std::endl; << timer.at(i_name) << " seconds"<< std::endl;
} }
/**
* Get elapsed time
*
* @param i_name Name of the time
* @return elapsed time
*/
double getTime(const std::string &i_name) {
return timer.at(i_name);
}
/** /**
* Print number of iterations done * Print number of iterations done
* *
......
Subproject commit 479999755e660f1969c294fe6cb68615d140ea19 Subproject commit 9f7fe2f2ebc31a9c9e68583232748fb5de7dba18
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment