@hackage clock0.1.2.1

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


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.