Add timerisclear() macro.
This commit is contained in:
parent
05f8a5c550
commit
8005ac2c64
@ -19,6 +19,10 @@ struct timezone {
|
|||||||
int tz_dsttime; /* type of dst correction */
|
int tz_dsttime; /* type of dst correction */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Operations on timevals. */
|
||||||
|
#define timerclear(tp) (tp)->tv_sec = (tp)->tv_usec = 0L
|
||||||
|
#define timerisset(tp) ((tp)->tv_sec || (tp)->tv_usec)
|
||||||
|
|
||||||
int gettimeofday(struct timeval *_RESTRICT tp, void *_RESTRICT tzp);
|
int gettimeofday(struct timeval *_RESTRICT tp, void *_RESTRICT tzp);
|
||||||
|
|
||||||
/* Compatibility with other Unix systems */
|
/* Compatibility with other Unix systems */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user