From d29b487f7c50fd8332cb1cfc144f70bc7db595d9 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Thu, 3 Jul 2014 12:43:28 +0200 Subject: Adding a "time" tactical for benchmarking purposes. In case the tactic backtracks, print time spent in each of successive calls. --- printing/pptactic.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'printing') diff --git a/printing/pptactic.ml b/printing/pptactic.ml index f6c25d0699..e51d7b3fd9 100644 --- a/printing/pptactic.ml +++ b/printing/pptactic.ml @@ -865,6 +865,9 @@ let rec pr_tac inherited tac = hov 1 (str "timeout " ++ pr_or_var int n ++ spc () ++ pr_tac (ltactical,E) t), ltactical + | TacTime (s,t) -> + hov 1 (str "time" ++ pr_opt str s ++ str " " ++ pr_tac (ltactical,E) t), + ltactical | TacRepeat t -> hov 1 (str "repeat" ++ spc () ++ pr_tac (ltactical,E) t), ltactical -- cgit v1.2.3