clock: High-resolution clock and timer functions: realtime, monotonic, cputime, etc.

[ bsd3, library, system ] [ Propose Tags ]

A package for convenient access to high-resolution clock and timer functions of different operating systems.

It is planned to consist of two layers. The lower layer will provide direct access to OS-specific clock and timer functions like clock_gettime of Posix or GetTickCount of Windows and its upper layer shall then provide a common API for all supported systems. Currently only the lower level is being developed.

POSIX reference: IEEE Std 1003.1-2008 http://www.opengroup.org/onlinepubs/9699919799/, http://www.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html#

WINDOWS reference: !! This early version is posix-only and does not build on Windows. Support will be added in the future. !!

For more information, see: http://sert.homedns.org/hs/clock


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.2.1, 0.2.0.0, 0.3, 0.4.0.1, 0.4.1.1, 0.4.1.2, 0.4.1.3, 0.4.2.0, 0.4.3.0, 0.4.4.0, 0.4.5.0, 0.4.6.0, 0.5.0.0, 0.5.0.1, 0.5.1, 0.5.2, 0.6.0, 0.6.0.1, 0.7.1, 0.7.1.1, 0.7.2, 0.8, 0.8.2, 0.8.3, 0.8.4
Change log CHANGES
Dependencies base (>=2 && <5) [details]
License BSD-3-Clause
Copyright (c) 2009 Cetin Sert
Author Cetin Sert <cetin@sertcom.de>
Maintainer Cetin Sert <cetin@sertcom.de>
Category System
Home page http://sert.homedns.org/hs/clock
Uploaded by CetinSert at 2009-06-17T04:34:24Z
Distributions Arch:0.8.3, Debian:0.8, Fedora:0.8.4, LTSHaskell:0.8.4, NixOS:0.8.4, Stackage:0.8.4, openSUSE:0.8.4
Reverse Dependencies 128 direct, 4222 indirect [details]
Downloads 147497 total (454 in the last 30 days)
Rating 2.5 (votes: 5) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for clock-0.1.2.1

[back to package description]
----------------

DEDICATED TO

  An Le Thi Thanh


----------------

DESCRIPTION

  see
  http://sert.homedns.org/hs/clock/dist/doc/html/clock/


  0.1.2 (current version)

  System
    Posix
      Clock


  1.0.0 (future projection)

  System
    Clock
    Posix
      Clock
    Windows
      Clock


----------------

CONSIDERATIONS

  → Implement System.Windows.Clock using QueryPerformanceCounter,
    GetTickCount64, etc. and export a common interface in another
    module System.Clock

  → System.Posix.Clock:
    getRes has type 'Clock → IO TimeSpec' discuss changing this to
    'Clock → TimeSpec' with other haskell developers or read the
    IEEE Std 1003.1-2008 thoroughly and decide on what to do.

  → System.Posix.Clock:
    move to a more flexible clock_id representation so that we can
    get the process/thread cpu-time for not just the caller but any
    process/thread for which we can obtain a correspoinding clock_id

  → Namespaces:
    use *.Clocks instead of *.Clock?


----------------

KNOWN ISSUES

  → namespace(s) have not been confirmed final.

  → posix-only: windows implementation to be added later.

  → no tests.


----------------

DISCLAIMER

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.