Use monotonic clock to measure elapsed time.
authorbluhm <bluhm@openbsd.org>
Thu, 29 Feb 2024 18:17:41 +0000 (18:17 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 29 Feb 2024 18:17:41 +0000 (18:17 +0000)
commitae58af2e973760b70f3a657612f8283f3929ac58
tree54935ba498acf9da727370e27b0fcb7a487269f1
parent085f25454964baa8e68d1053b787c22afc566ce9
Use monotonic clock to measure elapsed time.

The nanosleep regression test used gettimeofday(2).  Switch it to
a monotonic clock to avoid accidential fails from a call to
settimeofday(2) somewhere in the system.

from Christian Ludwig
regress/sys/kern/nanosleep/nanosleep.c