diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2019-12-08 17:29:57 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2019-12-08 17:44:37 +0100 |
commit | 7490e94aa7ea1ba50492e211fc415a6bda9de9ee (patch) | |
tree | 54b99fda2433cfe01f53cfa1f245acfa1acd3f17 /doc | |
parent | ec5ab426042d4c2d6add3f9a38c0847cc835a4d6 (diff) | |
download | coreutils-7490e94aa7ea1ba50492e211fc415a6bda9de9ee.tar.gz |
doc: add example to demonstrate sub-second sleep times
* doc/coreutils.texi (sleep invocation): Add an example to demonstrate
how to use the floating-point and the scientific notation to sleep
for sub-second times, e.g. milli-, micro- and nanoseconds.
Inspired by Stephane Chazelas in:
https://lists.gnu.org/r/coreutils/2019-12/msg00005.html
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 32ddba597..c52bb2dad 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -18248,6 +18248,13 @@ non-negative integer argument without a suffix, GNU @command{sleep} also accepts two or more arguments, unit suffixes, and floating-point numbers in either the current or the C locale. @xref{Floating point}. +For instance, the following could be used to @command{sleep} for +1 second, 234 milli-, 567 micro- and 890 nanoseconds: + +@example +sleep 1234e-3 567.89e-6 +@end example + The only options are @option{--help} and @option{--version}. @xref{Common options}. |