Public Member Functions | Private Attributes | List of all members
nom::Timer Class Reference
Inheritance diagram for nom::Timer:
[legend]

Public Member Functions

void start (void)
 
void stop (void)
 
void restart (void)
 Alias for start.
 
void pause (void)
 
void unpause (void)
 
uint32 ticks (void) const
 
bool started (void) const
 
bool paused (void) const
 
const std::string ticksAsString (void) const
 
uint32 seconds (float milliseconds) const
 Helper method; conversion from milliseconds to seconds.
 

Private Attributes

uint32 elapsed_ticks
 Milliseconds since timer start.
 
uint32 paused_ticks
 Holds ticks while paused.
 
bool timer_paused
 Tracks whether we are paused or not.
 
bool timer_started
 Tracks whether we are started or not.
 

Detailed Description

Definition at line 41 of file Timer.hpp.


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