mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
feat(trace.subscriber): depopt on unix for timestamps
This commit is contained in:
parent
35bb142cd0
commit
6ded0ed5c0
2 changed files with 4 additions and 0 deletions
|
|
@ -9,5 +9,6 @@
|
|||
(select time_.ml from
|
||||
(mtime mtime.clock.os -> time_.mtime.ml)
|
||||
(mtime mtime.clock.jsoo -> time_.mtime.ml)
|
||||
(unix -> time_.unix.ml)
|
||||
( -> time_.dummy.ml))))
|
||||
|
||||
|
|
|
|||
3
src/subscriber/time_.unix.ml
Normal file
3
src/subscriber/time_.unix.ml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
let[@inline] get_time_ns () : float =
|
||||
let t = Unix.gettimeofday () in
|
||||
t *. 1e9
|
||||
Loading…
Add table
Reference in a new issue