33 #ifndef DART_COMMON_TIMER_HPP_
34 #define DART_COMMON_TIMER_HPP_
52 # include <sys/time.h>
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:127
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:133
bool isStarted() const
Returns whether the timer is started.
Definition: Timer.cpp:139
void start()
Start timer.
Definition: Timer.cpp:80
double mTotalElapsedTime
Definition: Timer.hpp:108
void stop()
Stop the timer.
Definition: Timer.cpp:93
void print()
Print results.
Definition: Timer.cpp:145
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:110
static double getWallTime()
Return the current time of the system in seconds.
Definition: Timer.cpp:165
double mLastElapsedTime
Definition: Timer.hpp:107
Definition: BulletCollisionDetector.cpp:65