feat(trace.subscriber): depopt on unix for timestamps

This commit is contained in:
Simon Cruanes 2025-04-09 09:24:27 -04:00
parent 35bb142cd0
commit 6ded0ed5c0
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 4 additions and 0 deletions

View file

@ -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))))

View file

@ -0,0 +1,3 @@
let[@inline] get_time_ns () : float =
let t = Unix.gettimeofday () in
t *. 1e9