package opentelemetry

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Opentelemetry_core.ClockSource

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

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

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

Clock that uses ptime.

Sourceval now_ptime : unit -> Timestamp_ns.t

Same as now ptime_clock

Sourcemodule Main : sig ... end

Singleton clock

Sourceval now_main : unit -> Timestamp_ns.t

Timestamp using the main clock