[Lazarus] How to program with time in milliseconds?

Sven Barth pascaldragon at googlemail.com
Mon May 12 20:12:45 CEST 2014


On 12.05.2014 15:33, Michael Schnell wrote:
> On 05/12/2014 02:47 PM, Reinier Olislagers wrote:
>> Do you mean direct access to the hardware bypassing the OS? I thought
>> that wasn't possible in Windows?
>
> I don't know how the dynamic library call in Windows works.

If in doubt, take a look at ReactOS ;)

QueryPerformanceCounter calls NtQueryPerformanceCounter (which is a 
system call), which in turn calls KeQueryPerformanceCounter (which is 
implemented by the Hardware Abstraction Layer) which is defined here at 
around line 250: 
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/timer.c?revision=58489&view=markup

Regards,
Sven




More information about the Lazarus mailing list