Implementation of timing utility that uses monotonic std::chrono::steady_clock.
#include <drake/common/timer.h>
Public Member Functions | |
SteadyTimer () | |
~SteadyTimer () final | |
void | Start () final |
Begins timing. Call Start every time you want to reset the timer to zero. More... | |
double | Tick () final |
Obtains a timer measurement in seconds. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
SteadyTimer (const SteadyTimer &)=default | |
SteadyTimer & | operator= (const SteadyTimer &)=default |
SteadyTimer (SteadyTimer &&)=default | |
SteadyTimer & | operator= (SteadyTimer &&)=default |
Public Member Functions inherited from Timer | |
Timer ()=default | |
Properly implemented Timers must start timing upon construction. More... | |
virtual | ~Timer () |
Additional Inherited Members | |
Protected Member Functions inherited from Timer | |
Timer (const Timer &)=default | |
Timer & | operator= (const Timer &)=default |
Timer (Timer &&)=default | |
Timer & | operator= (Timer &&)=default |
|
default |
|
default |
SteadyTimer | ( | ) |
|
final |
|
default |
|
default |
|
finalvirtual |
Begins timing. Call Start every time you want to reset the timer to zero.
Implements Timer.
|
finalvirtual |
Obtains a timer measurement in seconds.
Call this repeatedly to get multiple measurements.
Implements Timer.