Re: How do get elapsed time in milliseconds in a shell script?
- Reply: Frank Leonhardt : "Re: How do get elapsed time in milliseconds in a shell script?"
- Reply: Ian Smith : "Re: How do get elapsed time in milliseconds in a shell script?"
- In reply to: freebsd-doc_a_fjl.co.uk: "Re: How do get elapsed time in milliseconds in a shell script?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Jul 2022 14:42:27 UTC
On Mon, 18 Jul 2022 14:01:01 +0100 freebsd-doc@fjl.co.uk wrote: > I think what may be needed is a base utility to produce the accurate > tick since the epoch or boot - it doesn't' matter for timeing. Possibly > an extension to "uptime", which I assume must know. There are some counters exposed via sysctl which might be useful, kern.timecounter.tc.HPET.counter looks promising, the rest seem to cycle rather quickly. Of course portability is an issue with using these. -- Steve O'Hara-Smith <steve@sohara.org>