src/Pure/Concurrent/multithreading.ML
changeset 62826 eb94e570c1a4
parent 62715 8312e5d8d217
child 62891 7a11ea5c9626
equal deleted inserted replaced
62825:e6e80a8bf624 62826:eb94e570c1a4
   125       handle _ (*sic*) => ()) ();
   125       handle _ (*sic*) => ()) ();
   126 
   126 
   127 fun tracing_time detailed time =
   127 fun tracing_time detailed time =
   128   tracing
   128   tracing
   129    (if not detailed then 5
   129    (if not detailed then 5
   130     else if Time.>= (time, seconds 1.0) then 1
   130     else if time >= seconds 1.0 then 1
   131     else if Time.>= (time, seconds 0.1) then 2
   131     else if time >= seconds 0.1 then 2
   132     else if Time.>= (time, seconds 0.01) then 3
   132     else if time >= seconds 0.01 then 3
   133     else if Time.>= (time, seconds 0.001) then 4 else 5);
   133     else if time >= seconds 0.001 then 4 else 5);
   134 
   134 
   135 fun real_time f x =
   135 fun real_time f x =
   136   let
   136   let
   137     val timer = Timer.startRealTimer ();
   137     val timer = Timer.startRealTimer ();
   138     val () = f x;
   138     val () = f x;