ReactOS  0.4.15-dev-3217-gc6d1646
timercmp.h
Go to the documentation of this file.
1 #ifndef TIMERCMP_H
2 #define TIMERCMP_H
3 
4 #ifndef timercmp
5 /* Taken from sys/time.h on linux. */
6 # define timercmp(a, b, CMP) \
7  (((a)->tv_sec == (b)->tv_sec) ? \
8  ((a)->tv_usec CMP (b)->tv_usec) : \
9  ((a)->tv_sec CMP (b)->tv_sec))
10 
11 # define timerclear(a) ((a)->tv_sec = (a)->tv_usec = 0)
12 #endif
13 
14 #endif//TIMERCMP_H