--- a/src/Pure/General/timing.ML Thu Dec 18 17:26:53 2014 +0100
+++ b/src/Pure/General/timing.ML Thu Dec 18 21:10:39 2014 +0100
@@ -105,7 +105,9 @@
fun timeap_msg msg f x = cond_timeit true msg (fn () => f x);
fun protocol_message props t =
- Output.try_protocol_message (props @ Markup.timing_properties t) [];
+ if is_relevant t then
+ Output.try_protocol_message (props @ Markup.timing_properties t) []
+ else ();
fun protocol props f x =
let
--- a/src/Pure/Tools/build.ML Thu Dec 18 17:26:53 2014 +0100
+++ b/src/Pure/Tools/build.ML Thu Dec 18 21:10:39 2014 +0100
@@ -82,9 +82,11 @@
val pos = Position.of_properties args;
val {elapsed, ...} = Markup.parse_timing_properties args;
in
- (case approximative_id name pos of
- SOME id => inline_message (#2 function) (Markup.command_timing_properties id elapsed)
- | NONE => ())
+ if Timing.is_relevant_time elapsed then
+ (case approximative_id name pos of
+ SOME id => inline_message (#2 function) (Markup.command_timing_properties id elapsed)
+ | NONE => ())
+ else ()
end
else
(case Markup.dest_loading_theory props of