7.7
monotonic: monotonic clock for Racket
This module provides a monotonic clock on POSIX systems that support CLOCK_MONOTONIC, macOS and 64bit Windows.
parameter
(current-monotonic-nanoseconds) → exact-nonnegative-integer?
(current-monotonic-nanoseconds nanotime) → void? nanotime : exact-nonnegative-integer?
A monotonically-increasing value in nanoseconds since some
unspecified time in the past.
procedure
Returns a monotonically-increasing value in nanoseconds since some
unspecified time in the past.
Use this over the parameter if you need absolutely minimal overhead. It is 1.5x to 2x slower than current-inexact-milliseconds depending on the platform.