table of contents
- trixie 5.3.0-3
- testing 5.4.1-1
- unstable 5.4.1-1
- experimental 5.5.0-1~exp2
| 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 |