relocant-1.0.0: A PostgreSQL migration CLI tool and library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Relocant.Duration

Description

This module deals with timing actions.

Synopsis

Documentation

newtype Duration Source #

How long something took, in seconds. Use mempty for a 0 seconds Duration.

Constructors

Duration Double 

Instances

Instances details
ToJSON Duration Source # 
Instance details

Defined in Relocant.Duration

Monoid Duration Source # 
Instance details

Defined in Relocant.Duration

Semigroup Duration Source # 
Instance details

Defined in Relocant.Duration

Show Duration Source # 
Instance details

Defined in Relocant.Duration

PrintfArg Duration Source # 
Instance details

Defined in Relocant.Duration

Eq Duration Source # 
Instance details

Defined in Relocant.Duration

FromField Duration Source # 
Instance details

Defined in Relocant.Duration

ToField Duration Source # 
Instance details

Defined in Relocant.Duration

Methods

toField :: Duration -> Action #

measure :: IO a -> IO (Duration, a) Source #

Time an action.

measure_ :: IO x -> IO Duration Source #

Time an action and ignore its result.