#include <ctimer.h>
Inheritance diagram for CFPSTimer:


Public Member Functions | |
| CFPSTimer (unsigned long max_frame_time) | |
| void | restart () |
| void | update () |
| unsigned long | get_fps () |
| unsigned long | get_time_passed () |
Definition at line 20 of file ctimer.h.
|
|
Creates a new FPS timer with the given max frame time. |
|
|
Returns the frames per second. |
|
|
Returns the number of milliseconds that the last frame took to render. Useful for telling a finite state machine how much time has passed since it was last updated, etc... |
|
|
Restarts the FPS timer. Definition at line 7 of file ctimer.cpp. References CSingletonManager< CTimerSystem >::get_instance(), and CTimerSystem::get_ticks(). |
Here is the call graph for this function:

|
|
Updates the FPS timer; should be called once, and ONLY once per frame. Definition at line 18 of file ctimer.cpp. References CSingletonManager< CTimerSystem >::get_instance(), CTimerSystem::get_ticks(), and CModel::notify(). |
Here is the call graph for this function:

1.3.3