BSD-3-Clause licensed and maintained by Toshio Ito
This version can be pinned in stack with:stopwatch-,2169

Module documentation for


A simple stopwatch utility for Haskell.

How to run tests

cabal configure --enable-tests && cabal build && cabal test

Important test flag

  • test_delay_upper_bound: Default: False. If True, the test checks the return value of stopWatch with upper bounds. If False, it doesn’t check upper bounds. It checks lower bounds only.


Toshio Ito [email protected]


Revision history for stopwatch – 2019-05-01

  • Confirmed test with clock-0.8. – 2018-03-14

  • Confirmed test with hspec-2.5.0. Remove its dependency upper bound, because I think it’s stable enough. – 2017-01-24

  • Confirmed build with hspec-2.4.0. – 2016-10-09

  • Confirmed build with hspec-2.3.0. – 2016-05-22

  • Dependency version range for base was too wide. – 2016-05-03

  • Expand dependency version ranges for transformers and clock.

  • Loosen the test. Now it checks only lower bounds of the measured delay, not upper bounds. This is because in some environments, it’s difficult to ensure the upper bounds.

0.1.0 – 2015-09-13

  • First version. Released on an unsuspecting world.