Allolib  1.0
C++ Components For Interactive Multimedia
al::Clock Class Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/system/al_Time.hpp>

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
 

Detailed Description

A timing source that can be locked to realtime or driven manually

Definition at line 176 of file al_Time.hpp.


The documentation for this class was generated from the following file: