[erlang-questions] hrtime/0, Was: now/0 resolution

Mikael Pettersson <>
Wed Sep 12 11:26:13 CEST 2007


On Wed, 12 Sep 2007 10:23:18 +0200, Erik Stenman wrote:
> There is support in Hipe for accessing performance counters in the CPU.
> These has been used to great advantage while benchmarking and finding  
> bottlenecks in HiPE.
> Take a look at
>    erts/emulator/hipe/hipe_perfctr.c
> Perhaps it is time to make them official...

Useful or not, that interface is far too low-level, OS-specific
(Linux + my perfctr extension), and non-standard (no vanilla
and very few vendor kernels include it) to be made official.

For most users a simple hrvtime/0 BIF should suffice.

/Mikael



More information about the erlang-questions mailing list