[Haskell-cafe] Re: Computer time, independent of date

Manlio Perillo manlio_perillo at libero.it
Fri Jan 9 08:44:08 EST 2009

Mauricio ha scritto:
>> benchpress also uses System.CPUTime -- is
>  > that what you are looking for?
> I'm writing a program that will read medical signs
> from many patients. It's important to have a precise
> measure of the time interval between some signs, and
> that can't depend on adjustments of time. (Supose
> my software is running midnight at the end of a year
> with leap seconds. I would get wrong time intervals.)

What precision do you need?

On a recent POSIX platform you can use the real time clock:

CLOCK_MONOTONIC is what you need.

 > [...]

Regards  Manlio Perillo

More information about the Haskell-Cafe mailing list