|
Tinman
1.0
|
#include <timer.h>
Public Types | |
| typedef std::chrono::steady_clock::duration | DeltaTime |
| typedef std::chrono::steady_clock::time_point | Time |
Public Member Functions | |
| Timer () | |
| virtual | ~Timer () |
| float | get_delta_time () |
| void | start () |
| void | restart () |
| void | stop () |
| float | get_time_since_start () |
Private Member Functions | |
| float | time_to_float (DeltaTime time) |
| float | truncate (float number) |
| Time | now () |
Private Attributes | |
| Time | last_time_ |
| Time | stop_ |
| DeltaTime | delta_ |
| DeltaTime | freeze_time_ |
| float | start_ |
| typedef std::chrono::steady_clock::duration Timer::DeltaTime |
| typedef std::chrono::steady_clock::time_point Timer::Time |
| Timer::Timer | ( | ) |
|
virtual |
| float Timer::get_delta_time | ( | ) |
| float Timer::get_time_since_start | ( | ) |
|
private |
| void Timer::restart | ( | ) |
| void Timer::start | ( | ) |
| void Timer::stop | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.9.1