timespan-0.3.0.0: Useful timespan datatype and functions

Safe HaskellSafe
LanguageHaskell2010

Data.Time.TimeSpan

Synopsis

Documentation

data TimeSpan #

An abstract timespan. Use the provided smart constructors to create a meaningful timespan. Note that on first sight a Num instance might seem desirable, but this would defeat the purpose of having transparent and explicitly constructed timespans due to fromInteger.

sleepTS :: TimeSpan -> IO () #

timeoutTS :: TimeSpan -> IO a -> IO (Maybe a) #

timeAction :: IO a -> IO (TimeSpan, a) #