prefer '0.2 ms' to '249 \<mu>s'
authorblanchet
Thu, 28 Aug 2014 19:07:10 +0200
changeset 58088 f9e4a9621c75
parent 58087 32d3fa94ebb4
child 58089 20e76da3a0ef
prefer '0.2 ms' to '249 \<mu>s'
src/HOL/Tools/ATP/atp_util.ML
--- a/src/HOL/Tools/ATP/atp_util.ML	Thu Aug 28 19:02:37 2014 +0200
+++ b/src/HOL/Tools/ATP/atp_util.ML	Thu Aug 28 19:07:10 2014 +0200
@@ -146,9 +146,9 @@
 fun string_of_ext_time (plus, time) =
   let val us = Time.toMicroseconds time in
     (if plus then "> " else "") ^
-    (if us < 1000 then signed_string_of_int us ^ " \<mu>s"
+    (if us < 1000 then string_of_real (Real.fromInt (us div 100) / 10.0) ^ " ms"
      else if us < 1000000 then signed_string_of_int (us div 1000) ^ " ms"
-     else string_of_real (0.1 * Real.fromInt (us div 100000)) ^ " s")
+     else string_of_real (Real.fromInt (us div 100000) / 10.0) ^ " s")
   end
 
 val string_of_time = string_of_ext_time o pair false