Re: rdtsc vs. GetTickCount()



Bruce McGee wrote:
The following function (from the MM Challenge) does not compile in
Delphi 5.  Is it save to replace this with GetTickCount for
compatibility, or will that cause problems?

function GetCPUTicks: Int64;
asm
  rdtsc;
end;


My proposal is to change

rdtsc;

to

db $0F; db $31;	//rdtsc	

Regards
Lars G
.



Relevant Pages

  • Re: Compatibility Flags
    ... And why are you trying to set compatibility bits for the ... > I do have this problem of the Apps name not appearing in the ... >> compability flags in WFICA32 Flags paramenter as ... >> Best regards, ...
    (microsoft.public.win2000.termserv.apps)
  • Re: ActiveSync and and CE 2.11
    ... We have a pretty extensive list of ActiveSync versions and compatible ... Regards, ... Co-Owner ... > message about compatibility problems. ...
    (microsoft.public.pocketpc.activesync)
  • Re: newline in a msgbox
    ... But vbNewLine is better for compatibility with the Mac. ... Regards, ... Tom Ogilvy ...
    (microsoft.public.excel.programming)
  • Re: Laptop suggestions?
    ... With regards to OS compatibility, ... he is expecting to be told about the weight of a laptop; ... do you know how many actual hardware ...
    (freebsd-hackers)
  • Re: VC++ 6.0, 7.0, and 8.0 Compatibility
    ... Compatibility and Compliance Issues in Visual C++ ... Best regards, ... Gary Chang ...
    (microsoft.public.vc.language)