Skip to content

Commit ff3311e

Browse files
committed
Improve precision of metrics timestamp.
1 parent adf029c commit ff3311e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml-lsp-server/src/document.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ end = struct
156156
let task =
157157
match
158158
Lev_fiber.Thread.task t.thread ~f:(fun () ->
159-
let start = Unix.time () in
159+
let start = Unix.gettimeofday () in
160160
let pipeline = make_pipeline () in
161161
let res = Mpipeline.with_pipeline pipeline (fun () -> f pipeline) in
162-
let stop = Unix.time () in
162+
let stop = Unix.gettimeofday () in
163163
res, start, stop)
164164
with
165165
| Error `Stopped -> assert false

0 commit comments

Comments
 (0)