mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +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
|
||||
((names (test))
|
||||
(libraries (sdk alcotest astring mtime.os mirage-flow-lwt))))
|
||||
(libraries (sdk alcotest astring mtime mtime.clock.os mirage-flow-lwt))))
|
||||
|
||||
(alias
|
||||
((name runtest)
|
||||
|
@ -283,7 +283,7 @@ let reporter ?(prefix="") () =
|
||||
let k _ = over (); k () in
|
||||
let ppf = match level with Logs.App -> Fmt.stdout | _ -> Fmt.stderr in
|
||||
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 ^^ "@]@.")
|
||||
prefix
|
||||
dt
|
||||
|
Loading…
Reference in New Issue
Block a user