zenilib
0.5.3.0
|
#include <Timer.h>
Inherits Zeni::Singleton< Timer >.
Public Member Functions | |
float | get_seconds () |
Get the number of seconds passed since instantiation. More... | |
Time::Tick_Type | get_ticks () |
Get the number of ticks passed since instantiation. More... | |
Time::Tick_Type | get_ticks_per_second () |
Get the number of ticks per second. More... | |
Time | get_time () |
Get the current Time. More... | |
Public Member Functions inherited from Zeni::Singleton< Timer > | |
void | fax_post_reinit (Event::Handler *const &handler) |
void | fax_pre_uninit (Event::Handler *const &handler) |
void | give_post_reinit (Event::Handler *const &handler) |
void | give_pre_uninit (Event::Handler *const &handler) |
void | lend_post_reinit (Event::Handler *const &handler) |
void | lend_pre_uninit (Event::Handler *const &handler) |
Friends | |
class | Singleton< Timer > |
Additional Inherited Members | |
Static Public Member Functions inherited from Zeni::Singleton< Timer > | |
static void | completely_destroy () |
static void | destroy () |
static Timer & | get () |
static bool | is_initialized () |
static void | remove_post_reinit (Event::Handler *const &handler) |
static void | remove_pre_uninit (Event::Handler *const &handler) |
Protected Member Functions inherited from Zeni::Singleton< Timer > | |
Singleton () | |
virtual | ~Singleton () |
Rather than using multiple Timers, I recommend using just this one and storing Times wherever necessary.
Contact: bazal d@ze nipex .com
|
inline |
Get the number of seconds passed since instantiation.
Definition at line 65 of file Timer.hxx.
References get_ticks().
|
inline |
Get the number of ticks passed since instantiation.
Definition at line 56 of file Timer.hxx.
Referenced by get_seconds(), Zeni::Time::get_ticks_passed(), and Zeni::Time::update().
|
inline |
|
inline |
Get the current Time.
Definition at line 69 of file Timer.hxx.
Referenced by Zeni::Video_GL_Fixed::end_render(), Zeni::Video_GL_Shader::end_render(), Zeni::Widget_Input_Repeater::on_key(), Zeni::Widget_Input_Repeater::perform_logic(), Zeni::Text_Box::seek(), and Zeni::Text_Box::seek_cursor().