(USE_CLOCK_GETTIME): Define.
authorJim Meyering <jim@meyering.net>
Thu, 23 Dec 1999 14:34:38 +0000 (14:34 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 23 Dec 1999 14:34:38 +0000 (14:34 +0000)
commit0ecbb73025629fd0d6fc4a57d5c40ced4634bfe5
treec61170254dc58a064b68edade909e13263470ff5
parentfc7ceba21b5239ce0d654b8dbc6caa51c6df95fb
(USE_CLOCK_GETTIME): Define.
[USE_CLOCK_GETTIME]: Include sys/time.h.
(timespec_subtract): New function.
(clock_get_realtime): New function.
(sighandler): Remove function.
(main): Reimplement again, using nanosleep and clock_gettime.
src/sleep.c