[Lazarus] How to program with time in milliseconds?
Michael Van Canneyt
michael at freepascal.org
Mon May 19 11:02:03 CEST 2014
On Mon, 19 May 2014, Michael Schnell wrote:
> On 05/19/2014 10:19 AM, Michael Van Canneyt wrote:
>>
>>
>> The register is already used for tick counts.
> Please let me know where.
>
> For TTimer in AvtiveNoGu I now use TThread.GetTickCount64 (or
> SysUtils.GetTickCount64)-
>
> I did ASM stepping into same and it does a syscall. (Linux X86/32)
Line 362 of epiktimer or thereabouts.
// Execute the Pentium's RDTSC instruction to access the counter value.
function HardwareTicks: TickType; assembler; asm DW 0310FH end;
Obviously only used if you get hardware ticks, not system ticks.
(for the latter obviously a system call is done)
Michael.
More information about the Lazarus
mailing list