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

From: grarpamp <grarpamp_at_gmail.com>
Date: Tue, 12 Jul 2022 17:58:06 UTC
> $ perl -MTime::HiRes -e 'print Time::HiRes::time;'

Not base.

Debug verbose...
local ticks (ntpdate, ntpq, cpucontrol, ...)
remote headers (fetch, openssl tls, ...)

Mind the application...
If called fast enough many things will collide even out beyond msec.
mktemp, hash random, ... offer crypto levels of anti-collide but aren't time.
String concats of the two are unique but not sortable within the collision.
HW SW tickers, sysctl counters, ... may all jump, reset, wrap, be admin'd.