Re: csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-25 Thread Theo de Raadt
Todd C. Miller wrote: > Other implementations of "time -p" (both builtin and standalone) > only display two digits after the radix point. I'm a little concerned > about breaking scripts that consume out the output of "time -p". I share that concern.

Re: csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-25 Thread Todd C . Miller
Other implementations of "time -p" (both builtin and standalone) only display two digits after the radix point. I'm a little concerned about breaking scripts that consume out the output of "time -p". Changing the precission of the non-portable output format is fine. - todd

Re: csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-25 Thread Scott Cheloha
On Tue, Jun 13, 2023 at 10:59:53PM -0500, Scott Cheloha wrote: > This patch bumps the precision of durations printed by csh(1), ksh(1), > and time(1) from centiseconds to milliseconds. The csh(1) and ksh(1) > builtins "time" and "times" are affected. > > My thinking is: > > - All practical

Re: csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-14 Thread Scott Cheloha
On Wed, Jun 14, 2023 at 10:34:20AM -0400, Josiah Frentsos wrote: > On Tue, Jun 13, 2023 at 10:59:53PM -0500, Scott Cheloha wrote: > > Index: usr.bin/time/time.c > > === > > RCS file: /cvs/src/usr.bin/time/time.c,v > > retrieving

Re: csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-14 Thread Josiah Frentsos
On Tue, Jun 13, 2023 at 10:59:53PM -0500, Scott Cheloha wrote: > Index: usr.bin/time/time.c > === > RCS file: /cvs/src/usr.bin/time/time.c,v > retrieving revision 1.25 > diff -u -p -r1.25 time.c > --- usr.bin/time/time.c 21 Aug

csh(1), ksh(1), time(1): print durations with millisecond precision

2023-06-13 Thread Scott Cheloha
This patch bumps the precision of durations printed by csh(1), ksh(1), and time(1) from centiseconds to milliseconds. The csh(1) and ksh(1) builtins "time" and "times" are affected. My thinking is: - All practical OpenBSD platforms have a timecounter with at least millisecond precision. -