Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Static Public Member Functions | List of all members
smlt::TimeKeeper Class Reference
Inheritance diagram for smlt::TimeKeeper:
smlt::RefCounted< TimeKeeper > smlt::TwoPhaseConstructed

Public Member Functions

 TimeKeeper (const float fixed_step)
 
bool init () override
 
void clean_up () override
 
void update ()
 
float delta_time () const
 
float fixed_step () const
 
float fixed_step_remainder () const
 
float total_elapsed_seconds () const
 
bool use_fixed_step ()
 
void restart ()
 

Static Public Member Functions

static uint64_t now_in_us ()
 
- Static Public Member Functions inherited from smlt::RefCounted< TimeKeeper >
static RefCounted< TimeKeeper >::ptr create (Args &&... args)
 
static RefCounted< TimeKeeper >::ptr create ()
 

Additional Inherited Members

- Public Types inherited from smlt::RefCounted< TimeKeeper >
typedef std::shared_ptr< TimeKeeperptr
 
typedef std::weak_ptr< TimeKeeperwptr
 
- Protected Member Functions inherited from smlt::RefCounted< TimeKeeper >
 RefCounted (Args &&...)
 

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