fix: remove dep on mtime in checker

This commit is contained in:
Simon Cruanes 2021-08-23 10:17:51 -04:00
parent 28fad1e408
commit 07d512badc
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,6 @@
(name main)
(public_name sidekick-checker)
(package sidekick-bin)
(libraries containers sidekick-bin.lib mtime mtime.clock.os
(libraries containers sidekick-bin.lib
sidekick.util sidekick.tef sidekick.drup)
(flags :standard -warn-error -a+8 -open Sidekick_util))

View file

@ -83,6 +83,8 @@ let () =
Printexc.record_backtrace true;
Sidekick_tef.setup();
let t1 = Unix.gettimeofday() in
Arg.parse opts (fun f -> files := f :: !files) "checker [opt]* [file]+";
let ok =
@ -96,7 +98,7 @@ let () =
| _ -> Error.errorf "expected <problem>? <proof>"
in
let t2 = Mtime_clock.elapsed () |> Mtime.Span.to_s in
let t2 = Unix.gettimeofday() -. t1 in
Format.printf "c %s@." (if ok then "OK" else "FAIL");
Format.printf "c elapsed time: %.3fs@." t2;
if not ok then exit 1