Scroll to navigation

Runtime_events.Timestamp(3o) OCaml library Runtime_events.Timestamp(3o)

NAME

Runtime_events.Timestamp - no description

Module

Module Runtime_events.Timestamp

Documentation

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

2026-07-02 OCamldoc