package why3find
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=435da830a513fd91ec5411c91126b763
sha512=fd8b04eb16d569c0dc9e5595a40b174d7858121b080c81d459b2f28fb3af1ebc32ef408859d5c1c5f45c61790625c027c2ecfc3d45e597943543de7212bab8d6
doc/why3find.utils/Why3findUtils/Timer/index.html
Module Why3findUtils.TimerSource
Time related features.
Timers
A timer is created with create, and can the be started with start. A running timer can be stopped with stop and the time of this run (the time elapsed since last start) is added to the timer. A new run can then be started with start
The type of timers.
Create and register a timer to be printed by print_timings. The string argument is the timer name.
Return a timed version of the argument function : a global timer of name name will time the function execution.
Same as timed for binary functions.
Same as timed for ternary functions.
Print the global timers on the given formatter.
Throttles
throttle ~delay:d f make succesive calls to f to only happen every ~delay seconds. The delayed function can be passed ~force:true to apply f immediately. Defaults to ~delay:0.1 which is 100ms.