Date: Wed, 21 Feb 2018 14:33:03 -0700 From: Alan Somers <asomers@freebsd.org> To: freebsd-standards@freebsd.org Subject: Using the monotonic clock in time(1)? Message-ID: <CAOtMX2jjeVRxuKPdM4hhrbz8NG%2B_kx_Q2jS-QZs52BbB%2BYOt=Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
time(1) currently uses the realtime clock, which is undesirable for timing short-lived commands while ntpd is active. I opened a review to add an option to use the monotonic clock instead, but jilles suggested that time should use the monotonic clock unconditionally, since that's almost always better for measuring short durations. However, the Open Group's specification seems to require the real time clock. What do the standards folks think? Is the Open Group spec sufficiently ambiguous and/or wrong that we should switch to the monotonic clock instead? https://reviews.freebsd.org/D14032 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/time.html -alan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2jjeVRxuKPdM4hhrbz8NG%2B_kx_Q2jS-QZs52BbB%2BYOt=Q>