DDraceNetwork Documentation
Loading...
Searching...
No Matches
time.cpp File Reference
#include "time.h"
#include "dbg.h"
#include "system.h"
#include <cmath>
#include <iomanip>
#include <sstream>
Include dependency graph for time.cpp:

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 ()
static tm time_localtime_threadlocal (time_t *time_data)
int time_houroftheday ()
static bool time_iseasterday (time_t time_data, tm time_info)
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_data, 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)

Variables

static int new_tick = -1
static const std::chrono::time_point< std::chrono::steady_clock > GLOBAL_START_TIME = std::chrono::steady_clock::now()

Function Documentation

◆ time_iseasterday()

bool time_iseasterday ( time_t time_data,
tm time_info )
static

◆ time_localtime_threadlocal()

tm time_localtime_threadlocal ( time_t * time_data)
static

Variable Documentation

◆ GLOBAL_START_TIME

const std::chrono::time_point<std::chrono::steady_clock> GLOBAL_START_TIME = std::chrono::steady_clock::now()
static

◆ new_tick

int new_tick = -1
static