Lines Matching refs:time
1 /* systime.h - System-dependent definitions for time manipulations.
26 #include <sys/time.h>
27 #include <time.h>
30 #include <sys/time.h>
32 #include <time.h>
53 /* On some configurations (hpux8.0, X11R4), sys/time.h and X11/Xos.h
79 EMACS_GET_TIME (TIME) stores the current system time in TIME, which
96 #define EMACS_SECS(time) ((time).tv_sec + 0)
97 #define EMACS_USECS(time) ((time).tv_usec + 0)
98 #define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds))
99 #define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds))
103 #define EMACS_GET_TIME(time) gettimeofday (&(time))
106 #define EMACS_GET_TIME(time) gettimeofday (&(time), NULL)
125 #define EMACS_TIME_NEG_P(time) \
126 ((long)(time).tv_sec < 0 \
127 || ((time).tv_sec == 0 \
128 && (long)(time).tv_usec < 0))
133 #define EMACS_SECS(time) (time)
134 #define EMACS_USECS(time) 0
135 #define EMACS_SET_SECS(time, seconds) ((time) = (seconds))
136 #define EMACS_SET_USECS(time, usecs) 0
138 #define EMACS_GET_TIME(t) ((t) = time ((long *) 0))
145 #define EMACS_SET_SECS_USECS(time, secs, usecs) \
146 (EMACS_SET_SECS (time, secs), EMACS_SET_USECS (time, usecs))