Re: How do get elapsed time in milliseconds in a shell script?

From: Steve O'Hara-Smith <steve_at_sohara.org>
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>