rdtsc: Binding for the rdtsc machine instruction
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.
[Skip to Readme]
Downloads
- rdtsc-1.3.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 1.1.1, 1.1.3, 1.1.3.1, 1.2.0.0, 1.3.0.0, 1.3.0.1 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4 && <5) [details] |
License | BSD-3-Clause |
Author | Martin Grabmueller <martin@grabmueller.de> |
Maintainer | martin@grabmueller.de |
Category | Foreign binding |
Home page | https://github.com/mgrabmueller/rdtsc |
Bug tracker | https://github.com/mgrabmueller/rdtsc/issues |
Source repo | head: git clone https://github.com/mgrabmueller/rdtsc |
Uploaded | by MartinGrabmueller at 2015-05-26T15:17:33Z |
Distributions | LTSHaskell:1.3.0.1, NixOS:1.3.0.1, Stackage:1.3.0.1 |
Reverse Dependencies | 6 direct, 4 indirect [details] |
Downloads | 5752 total (23 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-05-27 [all 1 reports] |