The rdtsc package

[Tags: bsd3, library]

This module provides the function rdtsc for accessing the rdtsc machine register on modern IA-32 processors. This is a 64-bit counter which counts the number of processor cycles since the machine has been powered up. Using this instruction, you can make very precise time measurements which are independent of the actual CPU frequency. But note that you can get strange results sometimes on a superscalar processor.

Also note that the Haskell foreign function interface imposes some additional overheads. On my machine, it takes about 950 cycles to call this function twice and to compute the difference, whereas in C the overhead is only about 88 cycles.


Properties

Versions1.1.1, 1.1.3, 1.1.3.1, 1.2.0.0, 1.3.0.0, 1.3.0.1
Change logChangeLog.md
Dependenciesbase (==4.*)
LicenseBSD3
AuthorMartin Grabmueller <martin@grabmueller.de>
Maintainermartin@grabmueller.de
StabilityExperimental
CategoryForeign binding
Home pagehttps://github.com/mgrabmueller/rdtsc
Bug trackerhttps://github.com/mgrabmueller/rdtsc/issues
Source repositoryhead: git clone https://github.com/mgrabmueller/rdtsc
UploadedTue May 26 15:17:33 UTC 2015 by MartinGrabmueller
DistributionsNixOS:1.3.0.1
Downloads936 total (62 in last 30 days)
StatusDocs available [build log]
Last success reported on 2015-05-27 [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees