Re: [fpc-devel] High performance Linux timer

2008-05-19 Thread Graeme Geldenhuys
Felipe Monteiro de Carvalho wrote: I once implemented a high precision timer on linux, but I don't remember how I did it. Look at the code here: http://wiki.lazarus.freepascal.org/EpikTimer Thanks, I'll have a look at the code for more details. From the wiki, it sounds like there might be

Re: [fpc-devel] High performance Linux timer

2008-05-19 Thread Vladimir Zhirov
Hi, Graeme Geldenhuys wrote: Does anybody know if there is a Linux (or generic Unix) high performance timer API available. Something like the Win32 API QueryPerformanceCounter()? Graeme, maybe this link will help: http://www.gamedev.net/community/forums/topic.asp?topic_id=127700 There are

Re: [fpc-devel] High performance Linux timer

2008-05-19 Thread Felipe Monteiro de Carvalho
On Mon, May 19, 2008 at 4:31 AM, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Timestamp counter from the CPU (assuming we are speaking of RDTSC) is susceptible to many issue... Read the line just bellow the one you just quoted: * Nanosecond resolution is supported on Intel Pentium versions

[fpc-devel] High performance Linux timer

2008-05-18 Thread Graeme Geldenhuys
Hi, Does anybody know if there is a Linux (or generic Unix) high performance timer API available. Something like the Win32 API QueryPerformanceCounter()? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit

Re: [fpc-devel] High performance Linux timer

2008-05-18 Thread Johann Glaser
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

Re: [fpc-devel] High performance Linux timer

2008-05-18 Thread Felipe Monteiro de Carvalho
I once implemented a high precision timer on linux, but I don't remember how I did it. Look at the code here: http://wiki.lazarus.freepascal.org/EpikTimer -- Felipe Monteiro de Carvalho ___ fpc-devel maillist - fpc-devel@lists.freepascal.org