15 May
2023
15 May
'23
09:45
On 2023-05-15 11:36, Andrei Borzenkov wrote:
On Mon, May 15, 2023 at 12:23 PM Per Jessen <per@opensuse.org> wrote:
GNU sleep supports fractional intervals so "usleep 1" == "sleep 0.000001".
Heh, it does indeed! Pity it doesn't accept the suffixes ms and us too. I guess the fractions work mostly by coincidence? There is no mention in the man page.
Code to parse floating point numbers can hardly appear by coincidence and it is documented in the info page (which is the primary documentation for GNU software). I agree that additional suffixes would be useful.
That the man page doesn't mention this (rather suggest integer seconds), is a bug, IMHO. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)