microtimer: A tiny library for benchmarking IO actions.

[ bsd3, library, system ] [ Propose Tags ]

A tiny library for benchmarking IO actions.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1.1, 0.0.1.2
Change log CHANGELOG.md
Dependencies base (>=4 && <5), time [details]
License BSD-3-Clause
Copyright Copyright (c) Bryan O'Sullivan 2009-2010, (c) Austin Seipp 2013
Author Bryan O'Sullivan
Maintainer Austin Seipp <aseipp@pobox.com>
Category System
Home page http://thoughtpolice.github.com/hs-microtimer
Bug tracker http://github.com/thoughtpolice/hs-microtimer/issues
Source repo head: git clone https://github.com/thoughtpolice/hs-microtimer.git
Uploaded by AustinSeipp at 2013-03-23T03:00:58Z
Distributions NixOS:0.0.1.2
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2212 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for microtimer-0.0.1.2

[back to package description]

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:

  • git clone https://github.com/thoughtpolice/hs-microtimer.git

There's also a BitBucket mirror:

  • git clone https://bitbucket.org/thoughtpolice/hs-microtimer.git

Authors

See AUTHORS.txt.

License

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