The microtimer package

[Tags: bsd3, library]

A tiny library for benchmarking IO actions.


[Skip to ReadMe]

Properties

Versions0.0.1.1, 0.0.1.2
Change logCHANGELOG.md
Dependenciesbase (==4.*), time [details]
LicenseBSD3
CopyrightCopyright (c) Bryan O'Sullivan 2009-2010, (c) Austin Seipp 2013
AuthorBryan O'Sullivan
MaintainerAustin Seipp <aseipp@pobox.com>
CategorySystem
Home pagehttp://thoughtpolice.github.com/hs-microtimer
Bug trackerhttp://github.com/thoughtpolice/hs-microtimer/issues
Source repositoryhead: git clone https://github.com/thoughtpolice/hs-microtimer.git
UploadedSat Mar 23 03:00:58 UTC 2013 by AustinSeipp
DistributionsNixOS:0.0.1.2
Downloads334 total (14 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for microtimer-0.0.1.2

A tiny Haskell library for timing IO actions.

Build Status

This package contains a very simple module for benchmarking IO actions. It was taken from criterion.

The API simply provides:

-- | Time an 'IO' action and return the time taken for execution,
-- as well as the return value.
time :: IO a -> IO (Double, a)

-- | Time an 'IO' action, throwing away the result and returning
-- the time taken for execution.
time_ :: IO a -> IO Double

-- | Convert a 'Double' value into a 'String' which specifies
-- how long something took in seconds.
formatSeconds :: Double -> String

Installation

It's just a cabal install away on Hackage:

$ cabal install microtimer

Join in

Be sure to read the contributing guidelines. File bugs in the GitHub issue tracker.

Master git repository:

There's also a BitBucket mirror:

Authors

See AUTHORS.txt.

License

BSD3. See LICENSE.txt for terms of copyright and redistribution.