More ts(1) cleanup. Change main loop so that in interval mode only one
authorclaudio <claudio@openbsd.org>
Wed, 6 Jul 2022 07:59:03 +0000 (07:59 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 6 Jul 2022 07:59:03 +0000 (07:59 +0000)
commitf8be9accee1ee177d3290071600a105d085db90e
treee9c2ebe06d72855e05551500a69046c36a92602d
parent487160fb6454dd1fe628a8c3bba6b34a897888e7
More ts(1) cleanup. Change main loop so that in interval mode only one
clock_gettime call is used resulting in more precise interval times.
Move the localtime call to fmtfmt() and rename the variable for the
micorsecond string to us.
Based on work done by cheloha@
OK job@ and cheloha@
usr.bin/ts/ts.c