10#ifndef __TIME_UTIL_H__
11#define __TIME_UTIL_H__
69struct timespec *ws_clock_get_realtime(
struct timespec *ts);
72struct tm *ws_localtime_r(
const time_t *timep,
struct tm *result);
75struct tm *ws_gmtime_r(
const time_t *timep,
struct tm *result);
WS_DLL_PUBLIC time_t mktime_utc(struct tm *tm)
Definition time_util.c:35
WS_DLL_PUBLIC void get_resource_usage(double *user_time, double *sys_time)
Definition time_util.c:153
WS_DLL_PUBLIC bool tm_is_valid(struct tm *tm)
Definition time_util.c:124
WS_DLL_PUBLIC void log_resource_usage(bool reset_delta, const char *format,...)
Definition time_util.c:180
WS_DLL_PUBLIC uint64_t create_timestamp(void)
Definition time_util.c:208