tagged-timers-0.1.0.0: Simple wrappers for timing IO actions (single-threaded)

Safe HaskellSafe
LanguageHaskell2010

System.Timer

Contents

Description

Utilities for timing various IO actions and grouping the times by dynamically generate labels.

Synopsis

Abstract Datatype

data Timer Source

A Timer is a (reference to) a map from Tag to a Double representing the total time associated with that Tag.

Create a Timer

create :: MonadIO m => m Timer Source

Create a new timer

Time an action

time :: MonadIO m => Timer -> Tag -> m a -> m a Source

Time a single action

Show results

result :: MonadIO m => Timer -> m [(Tag, Time)] Source

Output current results