29 # ifndef WIN32_LEAN_AND_MEAN
30 # define WIN32_LEAN_AND_MEAN
32 # include <Winsock2.h>
34 # include <sys/time.h>
37 #define AMQP_NS_PER_S 1000000000
38 #define AMQP_NS_PER_US 1000
40 #define AMQP_INIT_TIMER(structure) { \
41 structure.current_timestamp = 0; \
42 structure.timeout_timestamp = 0; \
45 typedef struct amqp_timer_t_ {
46 uint64_t current_timestamp;
47 uint64_t timeout_timestamp;
48 uint64_t ns_until_next_timeout;
54 amqp_get_monotonic_timestamp(
void);
58 amqp_timer_update(
amqp_timer_t *timer,
struct timeval *timeout);
Definition: amqp_timer.h:45