#include <timer.h>
Public Member Functions | |
Timer () | |
Constructs a timer initialized to the current time. | |
void | start () |
Starts the timer. | |
float | stop () |
Stops the timer and returns the time in seconds since the object was constructed, or since last call to start(). | |
Protected Attributes | |
std::clock_t | mStart |
Start time in ticks. |
This class is useful for measuring rendering times etc.