[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] sleep: allow ms suffix for milliseconds

From: Kaz Kylheku (Coreutils)
Subject: Re: [PATCH] sleep: allow ms suffix for milliseconds
Date: Mon, 09 Dec 2019 18:38:56 -0800
User-agent: Roundcube Webmail/0.9.2

On 2019-12-08 21:46, address@hidden 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

[Prev in Thread] Current Thread [Next in Thread]