[Haskell-cafe] Re: Computer time, independent of date
Cetin Sert
cetin.sert at gmail.com
Fri Jan 9 08:29:04 EST 2009
Don't know if it might help but:
http://en.wikipedia.org/wiki/RDTSC
cabal install rdtsc
http://hackage.haskell.org/packages/archive/rdtsc/1.1.1/doc/html/System-CPUTime-Rdtsc.html
Regards,
CS
2009/1/9 Bulat Ziganshin <bulat.ziganshin at gmail.com>
> Hello Mauricio,
>
> Friday, January 9, 2009, 4:01:18 PM, you wrote:
>
> > computer has been turned on would do all I need. Or,
> > maybe, how much has elapsed since the program started.
>
> i think you should look into system counters (if you on windows). for
> example, task managet in vista shows time since reboot, i think that
> in registry it should be available in previous windowses too. at the
> cpu level, there is cpu ticks counter, it should be readable via
> special libraries
>
>
> --
> Best regards,
> Bulat mailto:Bulat.Ziganshin at gmail.com
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090109/eefd814d/attachment.htm
More information about the Haskell-Cafe
mailing list