From 7bee53b298185c29dc82badadd07d01995e63584 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 16 Sep 2025 22:05:22 +0200 Subject: Remove unused code --- main.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 9f2f667..ce763f3 100644 --- a/main.c +++ b/main.c @@ -130,22 +130,11 @@ main(int argc, char **argv) if (clock_gettime(CLOCK_REALTIME, &then) == -1) warn(_("failed to get the time")); - /* Duration of the clock formatting and printing */ - struct timespec Δ = { - then.tv_sec - now.tv_sec, - then.tv_nsec - now.tv_nsec, - }; - if (Δ.tv_nsec < 0) { - Δ.tv_nsec += NSEC_PER_SEC; - Δ.tv_sec--; - } - + int rv; struct timespec rqtp = { .tv_sec = sync(then.tv_sec), .tv_nsec = 0, }; - - int rv; do rv = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &rqtp, nullptr); while (rv == -1 && errno == EINTR); -- cgit v1.2.3