Module Opentelemetry_core.Clock

type t = {
  1. now : unit -> Timestamp_ns.t;
}

A clock: can get the current timestamp, with nanoseconds precision

val now : t -> Timestamp_ns.t
val ptime_clock : t

Clock that uses ptime.

val now_ptime : unit -> Timestamp_ns.t

Same as now ptime_clock

module Main : sig ... end

Singleton clock

val now_main : unit -> Timestamp_ns.t

Timestamp using the main clock