hydrogen 1.2.6
Timehelper.h File Reference

Go to the source code of this file.

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

Definition at line 35 of file Timehelper.h.

◆ 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)

Definition at line 40 of file Timehelper.h.

Function Documentation

◆ gettimeofday()

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