Classes, functions, and variables in this file | |
---|---|
struct | timer |
unsigned long long | milliseconds () |
A simple structure that measures time.
Public members | |
---|---|
timer () | |
void | start () |
unsigned long long | milliseconds () |
double | nanoseconds () |
Constructor that starts the timer.
Starts the timer.
Returns the number of milliseconds elapsed since the timer was last started.
Returns the number of nanoseconds elapsed since the timer was last started.
On Windows and Mac, this returns the number of milliseconds elapsed since the system was started. On Linux, it returns the system's best estimate of the current time of day.