Handbook
Glossary
duration>nanoseconds ( duration -- x )
Calendar
ยป
Using durations
Prev:
duration>microseconds ( duration -- x )
Vocabulary
calendar
Inputs
duration
a
duration
Outputs
x
a
number
Word description
Calculates the length of a duration in nanoseconds.
Examples
USING: calendar prettyprint ; 6 seconds duration>nanoseconds .
6000000000
See also
duration>years
,
duration>months
,
duration>days
,
duration>hours
,
duration>minutes
,
duration>seconds
,
duration>milliseconds
,
duration>microseconds
Definition
USING:
math
;
IN:
calendar
:
duration>nanoseconds
( duration -- x )
duration>seconds
1000000000
*
;