From 73d269669df0f8acab50286fd4e27490e93a334d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 4 Sep 2019 11:09:56 +0000 Subject: Use stopwatches where appropriate --- src/skaembutils/s6-maximumtime.c | 1 + src/skaembutils/s6-sleep.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/skaembutils/s6-maximumtime.c b/src/skaembutils/s6-maximumtime.c index 5752d9a..30161dd 100644 --- a/src/skaembutils/s6-maximumtime.c +++ b/src/skaembutils/s6-maximumtime.c @@ -59,6 +59,7 @@ int main (int argc, char const *const *argv, char const *const *envp) pid = child_spawn0(argv[1], argv+1, envp) ; if (!pid) strerr_diefu2sys(111, "spawn ", argv[1]) ; + tain_now_set_stopwatch() ; tain_now_g() ; tain_add_g(&deadline, &deadline) ; 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) ; -- cgit v1.2.3