summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-sleep.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-04 11:09:56 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-04 11:09:56 +0000
commit73d269669df0f8acab50286fd4e27490e93a334d (patch)
tree4ec41ca1419c755e77a12af1bf0452d32f235691 /src/skaembutils/s6-sleep.c
parentd57bf5c0274184a02898114313225b56ed5ceac3 (diff)
downloads6-portable-utils-73d269669df0f8acab50286fd4e27490e93a334d.tar.xz
Use stopwatches where appropriate
Diffstat (limited to 'src/skaembutils/s6-sleep.c')
-rw-r--r--src/skaembutils/s6-sleep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/skaembutils/s6-sleep.c b/src/skaembutils/s6-sleep.c
index cde1282..75162f1 100644
--- a/src/skaembutils/s6-sleep.c
+++ b/src/skaembutils/s6-sleep.c
@@ -35,6 +35,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
tain_t deadline ;
if (milli) tain_from_millisecs(&deadline, n) ;
else tain_uint(&deadline, n) ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
deepsleepuntil_g(&deadline) ;