17 #if !defined(MQTTTIME_H) 22 #if defined(_WIN32) || defined(_WIN64) 24 #if WINVER >= _WIN32_WINNT_VISTA 25 #define START_TIME_TYPE ULONGLONG 26 #define START_TIME_ZERO 0 28 #define START_TIME_TYPE DWORD 29 #define START_TIME_ZERO 0 32 #define START_TIME_TYPE struct timespec 33 #define START_TIME_ZERO {0, 0} 36 #define START_TIME_TYPE struct timeval 37 #define START_TIME_ZERO {0, 0} 40 #define ELAPSED_TIME_TYPE uint64_t 41 #define DIFF_TIME_TYPE int64_t DIFF_TIME_TYPE MQTTTime_difftime(START_TIME_TYPE new, START_TIME_TYPE old)
ELAPSED_TIME_TYPE MQTTTime_elapsed(START_TIME_TYPE milliseconds)
void MQTTTime_sleep(ELAPSED_TIME_TYPE milliseconds)
START_TIME_TYPE MQTTTime_now(void)
START_TIME_TYPE MQTTTime_start_clock(void)
#define ELAPSED_TIME_TYPE