#include <timer.h>
Public Member Functions | |
Timer () | |
float | GetDeltaTime (bool bReset=true) |
void | Reset () |
Static Public Member Functions | |
uint64_t | GetHeartbeat () |
uint64_t | GetHeartbeatDivisor () |
Protected Attributes | |
uint64_t | m_uliOldClock |
Static Protected Attributes | |
uint64_t | s_uliOldHeartbeatClock |
uint64_t | s_uliHeartbeat |
uint64_t | s_uliDivisor |
|
|
|
|
|
Reset timer |
|
|
|
|
|
Old clock |
|
Old heartbeat clock |
|
Heartbeat is updated periodically and is used to maintain sync between different sections of the engine |
|
The divisor is the factor by which you convert heartbeats to seconds. Multiply heartbeat with divisor |