![]() |
DDNet documentation
|
#include <chrono>#include <cstdint>#include <ctime>Go to the source code of this file.
Namespaces | |
| namespace | TimestampFormat |
Enumerations | |
| enum class | ETimeSeason { ETimeSeason::SPRING , ETimeSeason::SUMMER , ETimeSeason::AUTUMN , ETimeSeason::WINTER , ETimeSeason::EASTER , ETimeSeason::HALLOWEEN , ETimeSeason::XMAS , ETimeSeason::NEWYEAR } |
| enum class | ETimeFormat { ETimeFormat::DAYS , ETimeFormat::HOURS , ETimeFormat::MINS , ETimeFormat::HOURS_CENTISECS , ETimeFormat::MINS_CENTISECS , ETimeFormat::SECS_CENTISECS } |
Functions | |
| void | set_new_tick () |
| std::chrono::nanoseconds | time_get_nanoseconds () |
| int64_t | time_get_impl () |
| int64_t | time_get () |
| int64_t | time_freq () |
| int64_t | time_timestamp () |
| int | time_houroftheday () |
| ETimeSeason | time_season () |
| void | str_timestamp (char *buffer, int buffer_size) |
| void | str_timestamp_format (char *buffer, int buffer_size, const char *format) |
| void | str_timestamp_ex (time_t time, char *buffer, int buffer_size, const char *format) |
| bool | timestamp_from_str (const char *string, const char *format, time_t *timestamp) |
| int64_t | time_milliseconds_from_seconds (float seconds) |
| int | str_time (int64_t centisecs, ETimeFormat format, char *buffer, int buffer_size) |
| int | str_time_float (float secs, ETimeFormat format, char *buffer, int buffer_size) |
Variables | |
| const char *const | TimestampFormat::TIME = "%H:%M:%S" |
| const char *const | TimestampFormat::SPACE = "%Y-%m-%d %H:%M:%S" |
| const char *const | TimestampFormat::NOSPACE = "%Y-%m-%d_%H-%M-%S" |