DDraceNetwork Documentation
Loading...
Searching...
No Matches
time.h File Reference
#include <chrono>
#include <cstdint>
#include <ctime>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FORMAT_TIME   "%H:%M:%S"
#define FORMAT_SPACE   "%Y-%m-%d %H:%M:%S"
#define FORMAT_NOSPACE   "%Y-%m-%d_%H-%M-%S"

Enumerations

enum  ETimeSeason {
  SEASON_SPRING = 0 , SEASON_SUMMER , SEASON_AUTUMN , SEASON_WINTER ,
  SEASON_EASTER , SEASON_HALLOWEEN , SEASON_XMAS , SEASON_NEWYEAR
}
enum  {
  TIME_DAYS , TIME_HOURS , TIME_MINS , TIME_HOURS_CENTISECS ,
  TIME_MINS_CENTISECS , TIME_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)
int str_time (int64_t centisecs, int format, char *buffer, int buffer_size)
int str_time_float (float secs, int format, char *buffer, int buffer_size)

Macro Definition Documentation

◆ FORMAT_NOSPACE

#define FORMAT_NOSPACE   "%Y-%m-%d_%H-%M-%S"

◆ FORMAT_SPACE

#define FORMAT_SPACE   "%Y-%m-%d %H:%M:%S"

◆ FORMAT_TIME

#define FORMAT_TIME   "%H:%M:%S"

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TIME_DAYS 
TIME_HOURS 
TIME_MINS 
TIME_HOURS_CENTISECS 
TIME_MINS_CENTISECS 
TIME_SECS_CENTISECS