mirage-clock

Libraries and module types for portable clocks
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library mirage-clock
Module type Mirage_clock . MCLOCK

Monotonic clock

Clock returning monotonic time since an arbitrary point. To be used for e.g. profiling.

val elapsed_ns : unit -> int64

elapsed_ns () is a monotonically increasing count of nanoseconds elapsed since some arbitrary point

val period_ns : unit -> int64 option

period_ns () is Some ns representing the clock's nanosecond period ns, if known