On 2019-12-08 21:46, sunnycemet...@gmail.com wrote:
On 2019-12-02 13:58, Stephane Chazelas wrote:
With GNU coreutils sleep (and ksh93's builtin but not that of
bash or mksh) one can add a e-3 suffix to get miliseconds (and
e-6 for us and e-9 for ns)

sleep 1 # s
sleep 1000e-3 # ms
sleep 1000000e-6 # us
sleep 1000000000e-9 # ns

Thank you for the trick (and Berny for the documentation patch).
It's new to me, but I guess that's what I get for not investigating
the  info page's notes.

Though it's a nice trick, it obviously depends on the value not
having an E exponent already. When that can be assumed or assured,
it's useful, no doubt.




Reply via email to