![]() | ![]() | ![]() | brief-run-time-duration | ![]() |
| &optional maximum-fields destination | [Function] |
Purpose
Format a run-time duration (in
Package :gbbopen-tools
Module :gbbopen-tools
Arguments and values
internal-time-units | A number | |
maximum-fields | An integer from 1–5 indicating maximum number of fields to include in the descriptive string (default is 5, indicating all fields should be included) | |
destination | Either nil , t , a stream, or a string with a fill
pointer (default is nil )
| |
result | A string or nil
|
Returns
If destination is non-nil
, then nil
; otherwise, a string.
Description
The internal-time-units run-time duration is rounded to
the nearest 100th of a second before conversion. Fields omitted by
See also
brief-duration
parse-duration
pretty-duration
pretty-run-time-duration
Examples
> internal-time-units-per-second 1000 > (brief-run-time-duration 1000) "1s" > (brief-run-time-duration 5) "0s" > (brief-run-time-duration 6) "0.01s" > most-positive-fixnum 536870911 > (brief-run-time-duration most-positive-fixnum) "6d 5h 7m 50.94s" >
The GBBopen Project
![]() | ![]() | ![]() | brief-run-time-duration | ![]() |