-
-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
let with_timer detail_times label identifier f = | ||
let with_timer detail_times debug label identifier f = | ||
let label = match detail_times,identifier with | ||
| 0,_ -> ["filters"] | ||
| 1,_ -> "filters" :: label :: [] | ||
| _,Some identifier -> "filters" :: label :: identifier :: [] | ||
| _ -> ["filters"] | ||
in | ||
if debug then print_endline (Printf.sprintf "Running filter: %s" (String.concat "." label)); | ||
let timer = Timer.timer label in | ||
Std.finally timer f () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters