|
MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHtimer.h>
Public Member Functions | |
| void | start () |
| void | stop () |
| real_type | operator() () const |
Based on http://www-106.ibm.com/developerworks/library/l-rt1/ and on the timer of the OpenTissue project ( (C) J.Sporring, K.Erleben)
How to use it:
ChTimer<double> timer;
timer.start(); ... timer.stop(); GetLog() << "It took " << timer() << " seconds to perform" << std::endl;
| void chrono::ChTimer< real_type >::start | ( | ) |
Start the timer.
| void chrono::ChTimer< real_type >::stop | ( | ) |
Stops the timer.
| real_type chrono::ChTimer< real_type >::operator() | ( | ) | const |
Get the timer value, with the () operator.
CHRONO::ENGINE