Description Usage Arguments Value See Also Examples
Pretty formatting of milliseconds
1 |
ms |
Numeric vector of milliseconds |
compact |
If true, then only the first non-zero unit is used. See examples below. |
Character vector of formatted time intervals.
Other time:
pretty_dt()
,
pretty_sec()
1 2 3 4 |
[1] "1.3s" "13.4s" "2m 13.7s" "22m 17s"
[5] "15d 11h 23m 20s"
[1] "~1.3s" "~13.4s" "~2m" "~22m" "~15d"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.