![]() |
DDraceNetwork Documentation
|
Enumerations | |
| enum | ETimeSeason { SEASON_SPRING = 0 , SEASON_SUMMER , SEASON_AUTUMN , SEASON_WINTER , SEASON_EASTER , SEASON_HALLOWEEN , SEASON_XMAS , SEASON_NEWYEAR } |
Functions | |
| void | set_new_tick () |
| int64_t | time_get_impl () |
| int64_t | time_get () |
| int64_t | time_freq () |
| int64_t | time_timestamp () |
| int | time_houroftheday () |
| ETimeSeason | time_season () |
| std::chrono::nanoseconds | time_get_nanoseconds () |
Time utilities.
| void set_new_tick | ( | ) |
| int64_t time_freq | ( | ) |
| int64_t time_get | ( | ) |
Fetches a sample from a high resolution timer.
| int64_t time_get_impl | ( | ) |
| std::chrono::nanoseconds time_get_nanoseconds | ( | ) |
Fetches a sample from a high resolution timer and converts it in nanoseconds.
| int time_houroftheday | ( | ) |
Retrieves the hours since midnight (0..23)
| ETimeSeason time_season | ( | ) |
Retrieves the current season of the year.
| int64_t time_timestamp | ( | ) |
Retrieves the current time as a UNIX timestamp