[fpc-devel] High performance Linux timer

Johann Glaser Johann.Glaser at gmx.at
Sun May 18 23:05:08 CEST 2008


Hi!

> Does anybody know if there is a Linux (or generic Unix) high
> performance timer API available. Something like the Win32 API
> QueryPerformanceCounter()?

Probably the Time-Stamp-Counter for your CPU is of interest for you. See
http://en.wikipedia.org/wiki/Rdtsc for example code.

Bye
  Hansi





More information about the fpc-devel mailing list