Skip to content

Commit

Permalink
Update doc/driver.mld
Browse files Browse the repository at this point in the history
Co-authored-by: panglesd <[email protected]>
  • Loading branch information
Julow and panglesd authored Sep 11, 2023
1 parent cdf15d1 commit 7128547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/driver.mld
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ let generate_output = ref [ "" ]
let commands = ref [ ]

let run ?output_file cmd =
let t_start = Sys.time () in
let t_start = Unix.gettimeofday () in
let r = OS.Cmd.(run_out ~err:OS.Cmd.err_run_out cmd |> to_lines) |> get_ok in
let t_end = Sys.time () in
let t_end = Unix.gettimeofday () in
commands := (cmd, t_end -. t_start, output_file) :: !commands;
r

Expand Down

0 comments on commit 7128547

Please sign in to comment.