|(require ( untyped/unlib/profile))|
Simple profiling tools.
Structure used to record a running total time. Only one timer can be running at a time per thread. The accumulated time associated with a timer can be retrieved using and printed by printing the timer.
Applies fn to args and returns the result. Measures the time taken to apply fn and adds it to the running total in timer. Timers are only updated when control passes into or out of a form.
|> ( t1 ( 't1))|
|> ( t1 0 (iota 1000000))|
#<timer:t1 0m 0.292s>
( timer ( () expr ))
Returns the current value of timer. Timers are only updated when control passes into or out of a form.
Returns a list of all timers created with or , plus a single predefined timer called 'top.
( id ( 'id))