mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-08 12:15:48 -05:00
fix: remove dep on mtime in checker
This commit is contained in:
parent
28fad1e408
commit
07d512badc
2 changed files with 4 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue