Home | History | Annotate | Download | only in inc

Lines Matching refs:time

38     #include <time.h>
40 /* time and process ID routines */
43 #define TIME_GET(target) time(&target)
45 #define TIME_MICROSECONDS(time) 0
46 #define TIME_SECONDS(time) (time)
47 #define TIME_INCREASE(time, microsecs) time += microsecs / 1000000
48 #define TIME_SET(time, sec, microsec) time = sec
64 #include <sys/time.h>
68 /* time and process ID routines */
74 #define TIME_MICROSECONDS(time) (time).tv_usec
75 #define TIME_SECONDS(time) (time).tv_sec
76 #define TIME_INCREASE(time, microsecs) \
77 ((time).tv_sec += ((microsecs) / 1000000) + \
78 ((time).tv_usec + (microsecs) % 1000000) / 1000000), \
79 ((time).tv_usec = ((time).tv_usec + (microsecs) % 1000000) % 1000000)
80 #define TIME_SET(time, sec, microsec) \
81 ((time).tv_sec = (sec)), ((time).tv_usec = (microsec))
86 #define TIME_DELTA(time, base) \
87 ((TIME_SECONDS(time) - TIME_SECONDS(base)) * 1000000 + \
88 (TIME_MICROSECONDS(time) - TIME_MICROSECONDS(base)))