zenilib
0.5.3.0
|
A stoppable running timer. More...
#include <Chronometer.h>
Public Member Functions | |
Chronometer () | |
Chronometer (const Chronometer< TIME > &rhs) | |
~Chronometer () | |
const bool & | is_running () const |
Get whether the Chronometer is currently counting or stopped. More... | |
Chronometer & | operator= (const Chronometer< TIME > &rhs) |
void | reset () |
Reset the Chronometer. This does NOT stop the Chronometer. More... | |
void | scale (const typename TIME::Second_Type &scaling_factor=typename TIME::Second_Type(1)) |
Scale the amount of time that passes by some amount. More... | |
const TIME::Second_Type & | scaling_factor () const |
Get the scaling factor. More... | |
TIME::Second_Type | seconds () const |
Get the number of seconds counted by the Chronometer. More... | |
void | set (const typename TIME::Second_Type &time) |
Set the number of seconds counted by the Chronometer. More... | |
const TIME & | start () |
Start the Chronometer and get the current TIME. This does NOT reset the Chronometer. More... | |
const TIME & | stop () |
Stop the Chronometer and get the current TIME. More... | |
Static Public Member Functions | |
static bool | are_paused () |
Check to see if all Chronometer<TIME> objects are paused. More... | |
static void | pause_all () |
Pause all Chronometer<TIME> objects. More... | |
static void | unpause_all () |
Unpause all Chronometer<TIME> objects. More... | |
A stoppable running timer.
Contact: bazal d@ze nipex .com
Definition at line 40 of file Chronometer.h.
Zeni::Chronometer< TIME >::Chronometer | ( | ) |
Definition at line 30 of file Chronometer.hxx.
Zeni::Chronometer< TIME >::~Chronometer | ( | ) |
Definition at line 39 of file Chronometer.hxx.
Zeni::Chronometer< TIME >::Chronometer | ( | const Chronometer< TIME > & | rhs | ) |
Definition at line 45 of file Chronometer.hxx.
|
static |
Check to see if all Chronometer<TIME> objects are paused.
Definition at line 151 of file Chronometer.hxx.
const bool & Zeni::Chronometer< TIME >::is_running | ( | ) | const |
Get whether the Chronometer is currently counting or stopped.
Definition at line 76 of file Chronometer.hxx.
Chronometer< TIME > & Zeni::Chronometer< TIME >::operator= | ( | const Chronometer< TIME > & | rhs | ) |
Definition at line 59 of file Chronometer.hxx.
|
static |
Pause all Chronometer<TIME> objects.
Definition at line 156 of file Chronometer.hxx.
Referenced by Zeni::Popup_State::on_push().
void Zeni::Chronometer< TIME >::reset | ( | ) |
Reset the Chronometer. This does NOT stop the Chronometer.
Definition at line 129 of file Chronometer.hxx.
void Zeni::Chronometer< TIME >::scale | ( | const typename TIME::Second_Type & | scaling_factor = typename TIME::Second_Type(1) | ) |
Scale the amount of time that passes by some amount.
Definition at line 140 of file Chronometer.hxx.
const TIME::Second_Type & Zeni::Chronometer< TIME >::scaling_factor | ( | ) | const |
Get the scaling factor.
Definition at line 135 of file Chronometer.hxx.
TIME::Second_Type Zeni::Chronometer< TIME >::seconds | ( | ) | const |
Get the number of seconds counted by the Chronometer.
Definition at line 114 of file Chronometer.hxx.
void Zeni::Chronometer< TIME >::set | ( | const typename TIME::Second_Type & | time | ) |
Set the number of seconds counted by the Chronometer.
Definition at line 121 of file Chronometer.hxx.
const TIME & Zeni::Chronometer< TIME >::start | ( | ) |
Start the Chronometer and get the current TIME. This does NOT reset the Chronometer.
Definition at line 81 of file Chronometer.hxx.
const TIME & Zeni::Chronometer< TIME >::stop | ( | ) |
Stop the Chronometer and get the current TIME.
Definition at line 97 of file Chronometer.hxx.
|
static |
Unpause all Chronometer<TIME> objects.
Definition at line 174 of file Chronometer.hxx.
Referenced by Zeni::Popup_State::on_pop().