An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

rdtsc

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.

Ecosystem
hackage.haskell.org
Latest Release
1.1.3
over 15 years ago
Versions
6
Downloads
5,932 total
Dependent Packages
1
Dependent Repos
30
Links
Registry hackage.haskell.org
Source Repository
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/rdtsc
spec
License BSD-3-Clause
First Release about 19 years ago
Last Synced 21 days ago
Repository
Stars 1 on GitHub
Forks 0 on GitHub
Rankings on hackage.haskell.org
Dependent repos Top 9.6%