zenilib
0.5.3.0
|
A Snapshot of the Timer. More...
#include <Timer.h>
Public Types | |
typedef float | Second_Type |
typedef size_t | Tick_Type |
Public Member Functions | |
Time () | |
Initialize to the current time. More... | |
Time (const Tick_Type &ticks) | |
float | get_seconds_passed () const |
Get the number of seconds passed since this Time. More... | |
float | get_seconds_since (const Time &time) const |
Get the number of seconds passed between 'time' and this Time. More... | |
Tick_Type | get_ticks_passed () const |
Get the number of clock ticks passed since this Time. More... | |
Tick_Type | get_ticks_since (const Time &time) const |
Get the number of clock ticks passed between 'time' and this Time. More... | |
bool | operator< (const Time &rhs) const |
Time & | operator= (const Tick_Type &ticks) |
void | update () |
Update to current Time. More... | |
typedef float Zeni::Time::Second_Type |
typedef size_t Zeni::Time::Tick_Type |
|
inline |
Get the number of seconds passed since this Time.
Definition at line 36 of file Timer.hxx.
References get_ticks_passed().
Get the number of seconds passed between 'time' and this Time.
Definition at line 44 of file Timer.hxx.
References get_ticks_since().
Referenced by Zeni::Game::run().
|
inline |
Get the number of clock ticks passed since this Time.
Definition at line 32 of file Timer.hxx.
References Zeni::Timer::get_ticks(), and Zeni::get_Timer().
Referenced by get_seconds_passed().
|
inline |
Get the number of clock ticks passed between 'time' and this Time.
Definition at line 40 of file Timer.hxx.
Referenced by Zeni::Video_GL_Fixed::end_render(), Zeni::Video_GL_Shader::end_render(), get_seconds_since(), and Zeni::Widget_Input_Repeater::perform_logic().
|
inline |
Update to current Time.
Definition at line 48 of file Timer.hxx.
References Zeni::Timer::get_ticks(), and Zeni::get_Timer().