From: Alan Cox Date: Fri, 2 Jan 2015 18:06:51 +0000 (+0000) Subject: sleep: use the monotonic timer X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=aead991ca7d2895079ce6514c6c6e686c4fe7263;p=FUZIX.git sleep: use the monotonic timer --- diff --git a/Library/libs/sleep.c b/Library/libs/sleep.c index 28cb6ec0..6a94d6f5 100644 --- a/Library/libs/sleep.c +++ b/Library/libs/sleep.c @@ -8,10 +8,10 @@ unsigned int sleep(unsigned int seconds) { time_t end, now; - _time(&end, 0); + _time(&end, 1); end += seconds; if (_pause(seconds * 10) == 0) return 0; - _time(&now, 0); + _time(&now, 1); return (int)(end - now); }