![]() |
Raven Engine v0.1
|
A high-resolution timer class. More...
#include <Timer.h>
Public Member Functions | |
| Timer () | |
| void | Reset () |
| Resets the timer to the current time. | |
| float | Elapsed () const |
| Returns the elapsed time since the timer was started. | |
| float | ElapsedMillis () const |
| Returns the elapsed time since the timer was started in milliseconds. | |
A high-resolution timer class.
This class provides methods to measure elapsed time with microsecond precision.
|
inline |
|
inline |
Returns the elapsed time since the timer was started.
This method calculates the elapsed time in seconds.
|
inline |
Returns the elapsed time since the timer was started in milliseconds.
This method calculates the elapsed time in milliseconds.
|
inline |
Resets the timer to the current time.
This method sets the start time to the current high-resolution clock time.