enet  v1.3.12
reliable UDP networking library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
time.h File Reference

ENet time constants and macros. More...

This graph shows which files directly or indirectly include this file:

Macros

#define ENET_TIME_DIFFERENCE(a, b)   ((a) - (b) >= ENET_TIME_OVERFLOW ? (b) - (a) : (a) - (b))
 
#define ENET_TIME_GREATER(a, b)   ((b) - (a) >= ENET_TIME_OVERFLOW)
 
#define ENET_TIME_GREATER_EQUAL(a, b)   (! ENET_TIME_LESS (a, b))
 
#define ENET_TIME_LESS(a, b)   ((a) - (b) >= ENET_TIME_OVERFLOW)
 
#define ENET_TIME_LESS_EQUAL(a, b)   (! ENET_TIME_GREATER (a, b))
 
#define ENET_TIME_OVERFLOW   86400000
 

Detailed Description

ENet time constants and macros.

Macro Definition Documentation

#define ENET_TIME_DIFFERENCE (   a,
 
)    ((a) - (b) >= ENET_TIME_OVERFLOW ? (b) - (a) : (a) - (b))

Referenced by enet_host_service().

#define ENET_TIME_GREATER (   a,
 
)    ((b) - (a) >= ENET_TIME_OVERFLOW)
#define ENET_TIME_GREATER_EQUAL (   a,
 
)    (! ENET_TIME_LESS (a, b))

Referenced by enet_host_service().

#define ENET_TIME_LESS (   a,
 
)    ((a) - (b) >= ENET_TIME_OVERFLOW)
#define ENET_TIME_LESS_EQUAL (   a,
 
)    (! ENET_TIME_GREATER (a, b))
#define ENET_TIME_OVERFLOW   86400000