Re: Accessing tick counter without api
From: Tim Roberts (spamtrap_at_crayne.org)
Date: 09/13/04
- Next message: David: "Re: own operating system"
- Previous message: Brian Mitchell: "Re: NX bit versus standard permissions?"
- In reply to: Robert Redelmeier: "Re: Accessing tick counter without api"
- Next in thread: Matt Taylor: "Re: Accessing tick counter without api"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 13 Sep 2004 03:58:45 +0000 (UTC)
Robert Redelmeier <redelm@ev1.net.invalid> wrote:
>Paradox <spamtrap@crayne.org> wrote:
>> Hey i'm making a 32bit windows dialog application and
>> i dont want to use the GetTickCount api I was thinking
>> there would be a place in memory which i could find and
>> just access the tick count via memory, is this possible?
>
>I think you've already had replies about this. Since this
>is an ASM newsgroup, I have a lower level possibility:
>
>Why not use the `rdtsc` instruction to read the Time-Stamp
>Counter? Scale & offset to ticks if needed.
That "scale & offset" operation is not necessarily trivial, because it
isn't always obvious how to determine cycles per second. That's especially
true on the modern processors that "downshift" at unexpected times.
-- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
- Next message: David: "Re: own operating system"
- Previous message: Brian Mitchell: "Re: NX bit versus standard permissions?"
- In reply to: Robert Redelmeier: "Re: Accessing tick counter without api"
- Next in thread: Matt Taylor: "Re: Accessing tick counter without api"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|