Module Runtime_events.Timestamp
module Timestamp: sig .. end
type t
Abstract timestamp included in events.
val to_int64 : t -> int64
Convert a timestamp to a number of nanosecond.
Note that the starting point for timestamps in unspecified: the absolute value is meaningless, only differences matter.
Also note that the precision of the underlying clock may be coarser than nanoseconds: events may have equal timestamp if they are emitted within the coarseness of the clock.
val get_current : unit -> t
Access the current timestamp.
- Since 5.4
© 1995-2026 INRIA.
https://ocaml.org/manual/5.5/api/Runtime_events.Timestamp.html