The clock package

[Tags: bsd3, library]

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]

Properties

Versions0.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
Change logCHANGES
Dependenciesbase (>=2 && <5) [details]
LicenseBSD3
Copyright(c) 2009 Cetin Sert
AuthorCetin Sert <cetin@sertcom.de>
MaintainerCetin Sert <cetin@sertcom.de>
StabilityExperimental
CategorySystem
Home pagehttp://sert.homedns.org/hs/clock
UploadedWed Jun 17 04:34:24 UTC 2009 by CetinSert
DistributionsDebian:0.5.1, LTSHaskell:0.4.6.0, NixOS:0.5.1, Stackage:0.5.1
Downloads8452 total (525 in last 30 days)
Votes
1 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for clock-0.1.2.1

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

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.