Allolib
1.0
C++ Components For Interactive Multimedia
|
Public Member Functions | |
Clock (bool useRT=true) | |
Constructor that defaults to realtime mode. | |
Clock (al_sec dt) | |
Constructor that defaults to a fixed 'frame rate'. | |
al_sec | now () const |
get current clock time | |
al_sec | operator() () const |
al_sec | dt () const |
get current delta time | |
double | fps () const |
get current FPS: | |
unsigned | frame () const |
get current frame: | |
bool | rt () const |
get current mode: | |
al_sec | update () |
update the internal clock. | |
al_sec | update (al_sec dt) |
void | useRT () |
set RT mode: | |
void | useNRT (al_sec dt) |
set NRT mode with specific frame rate: | |
Protected Attributes | |
al_sec | mNow |
al_sec | mReferenceTime |
al_sec | mDT |
double | mFPS |
unsigned | mFrame |
bool | bUseRT |
A timing source that can be locked to realtime or driven manually
Definition at line 176 of file al_Time.hpp.