nano-count ( -- ns ) (original) (raw)
nano-count ( -- ns )
Factor handbook » The implementation » System interface
Prev: | image-path ( -- path ) |
---|---|
Next: | exit ( n -- * ) |
Vocabulary
system
Inputs
None
Outputs
ns | an integer |
---|
Word description
Outputs a monotonically increasing count of nanoseconds elapsed since an arbitrary starting time. The difference of two calls to this word allows timing. This word is unaffected by system clock changes.
Notes
This is a low-level word. The tools.time vocabulary defines words to time code execution time.
Definition
PRIMITIVE: nano-count ( -- ns ) flushable