From aead991ca7d2895079ce6514c6c6e686c4fe7263 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 2 Jan 2015 18:06:51 +0000 Subject: [PATCH] sleep: use the monotonic timer --- Library/libs/sleep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.34.1