![]() |
DDNet documentation
|
Enumerations | |
| enum class | ETimeSeason { ETimeSeason::SPRING , ETimeSeason::SUMMER , ETimeSeason::AUTUMN , ETimeSeason::WINTER , ETimeSeason::EASTER , ETimeSeason::HALLOWEEN , ETimeSeason::XMAS , ETimeSeason::NEWYEAR } |
Functions | |
| void | set_new_tick () |
| std::chrono::nanoseconds | time_get_nanoseconds () |
| int64_t | time_get_impl () |
| int64_t | time_get () |
| int64_t | time_freq () |
| int | time_houroftheday () |
| ETimeSeason | time_season () |
Time utilities.
|
strong |
| void set_new_tick | ( | ) |
Clears the cached sample of the high resolution timer.
| int64_t time_freq | ( | ) |
| int64_t time_get | ( | ) |
Fetches a cached 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 to nanoseconds.
| int time_houroftheday | ( | ) |
Retrieves the hours since midnight (0..23).
| ETimeSeason time_season | ( | ) |
Retrieves the current season or event of the year.