33 #ifndef DART_COMMON_TIMER_HPP_
34 #define DART_COMMON_TIMER_HPP_
66 explicit Timer(
const std::string& _name =
"Noname Timer");
113 LARGE_INTEGER mFrequency;
114 double _convLIToSecs(
const LARGE_INTEGER& _L);
The implementation of Timer class.
Definition: Timer.hpp:63
double getLastElapsedTime() const
Return last elapsed time in seconds.
Definition: Timer.cpp:126
timeval mTimeVal
Definition: Timer.hpp:102
Timer(const std::string &_name="Noname Timer")
Default constructor.
Definition: Timer.cpp:47
int mCount
Definition: Timer.hpp:97
double mStartedTime
Definition: Timer.hpp:103
virtual ~Timer()
Default destructor.
Definition: Timer.cpp:65
double getTotalElapsedTime() const
Return total elapsed time in seconds.
Definition: Timer.cpp:132
bool isStarted() const
Returns whether the timer is started.
Definition: Timer.cpp:138
void start()
Start timer.
Definition: Timer.cpp:79
double mTotalElapsedTime
Definition: Timer.hpp:108
void stop()
Stop the timer.
Definition: Timer.cpp:92
void print()
Print results.
Definition: Timer.cpp:144
bool mIsStarted
Definition: Timer.hpp:110
std::string mName
Definition: Timer.hpp:109
double mStoppedTime
Definition: Timer.hpp:104
double getElapsedTime()
Return elapsed time in seconds since startTimer()
Definition: Timer.cpp:109
static double getWallTime()
Return the current time of the system in seconds.
Definition: Timer.cpp:163
double mLastElapsedTime
Definition: Timer.hpp:107
Definition: BulletCollisionDetector.cpp:63