mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
sdk: use mtime 1.0
Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
parent
b845703a79
commit
c0d999dbab
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
(executables
|
(executables
|
||||||
((names (test))
|
((names (test))
|
||||||
(libraries (sdk alcotest astring mtime.os mirage-flow-lwt))))
|
(libraries (sdk alcotest astring mtime mtime.clock.os mirage-flow-lwt))))
|
||||||
|
|
||||||
(alias
|
(alias
|
||||||
((name runtest)
|
((name runtest)
|
||||||
|
@ -283,7 +283,7 @@ let reporter ?(prefix="") () =
|
|||||||
let k _ = over (); k () in
|
let k _ = over (); k () in
|
||||||
let ppf = match level with Logs.App -> Fmt.stdout | _ -> Fmt.stderr in
|
let ppf = match level with Logs.App -> Fmt.stdout | _ -> Fmt.stderr in
|
||||||
let with_stamp h _tags k fmt =
|
let with_stamp h _tags k fmt =
|
||||||
let dt = Mtime.to_us (Mtime.elapsed ()) in
|
let dt = Mtime.Span.to_us (Mtime_clock.elapsed ()) in
|
||||||
Fmt.kpf k ppf ("%s%+04.0fus %a %a @[" ^^ fmt ^^ "@]@.")
|
Fmt.kpf k ppf ("%s%+04.0fus %a %a @[" ^^ fmt ^^ "@]@.")
|
||||||
prefix
|
prefix
|
||||||
dt
|
dt
|
||||||
|
Loading…
Reference in New Issue
Block a user