mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
Merge pull request #1965 from samoht/mtime
sdk: update the tests to use mtime 1.0 and logs.fmt
This commit is contained in:
commit
b460a718cc
@ -2,7 +2,8 @@
|
||||
|
||||
(executables
|
||||
((names (test))
|
||||
(libraries (sdk alcotest astring mtime.os mirage-flow-lwt))))
|
||||
(libraries (sdk alcotest astring mtime mtime.clock.os mirage-flow-lwt
|
||||
logs.fmt))))
|
||||
|
||||
(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