mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
shortcut in clock
This commit is contained in:
parent
7cc0ee1701
commit
d5f6b564db
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ end
|
||||||
(** Clock that uses ptime. *)
|
(** Clock that uses ptime. *)
|
||||||
let ptime_clock : t = { now = now_ptime_ }
|
let ptime_clock : t = { now = now_ptime_ }
|
||||||
|
|
||||||
|
(** Same as [now ptime_clock] *)
|
||||||
|
let now_ptime = now_ptime_
|
||||||
|
|
||||||
(** Singleton clock *)
|
(** Singleton clock *)
|
||||||
module Main = struct
|
module Main = struct
|
||||||
open struct
|
open struct
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue