A timer. More...
#include <Radiant/Timer.hpp>
Public Member Functions | |
| int | resolution () const |
| Get the timer resolution Returns the number of timer ticks per second. More... | |
| void | start () |
| Start the timer Starts the timer by resetting its clock to the current time. | |
| double | startTime () const |
| Get start time Returns the time of the last start call. More... | |
| double | time () const |
| Get elapsed time Returns the elapsed time in seconds since last start call. More... | |
| Timer () | |
| Construct a new Timer and start it. | |
A timer.
Timer is useful for measuring how long certain tasks take to complete. Typical usage is as follows:
|
inline |
Get the timer resolution Returns the number of timer ticks per second.
|
inline |
Get start time Returns the time of the last start call.
|
inline |
Get elapsed time Returns the elapsed time in seconds since last start call.