hydrogen 1.1.1
Timehelper.h File Reference

Data Structures

struct  timezone
 

Macros

#define DELTA_EPOCH_IN_MICROSECS   11644473600000000ULL
 
#define timersub(a, b, result)
 

Functions

int gettimeofday (struct timeval *tv, struct timezone *tz)
 

Macro Definition Documentation

◆ DELTA_EPOCH_IN_MICROSECS

#define DELTA_EPOCH_IN_MICROSECS   11644473600000000ULL

◆ timersub

#define timersub (   a,
  b,
  result 
)
Value:
do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)

Function Documentation

◆ gettimeofday()

int gettimeofday ( struct timeval *  tv,
struct timezone tz 
)