Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   Re: High Performance Counter. (http://www.velocityreviews.com/forums/t314089-re-high-performance-counter.html)

Eternal Vigilance 07-08-2003 11:28 PM

Re: High Performance Counter.
 
I think it just resets when the CPU is powered up, but never thought of looking
into it
since always have used it as a relative time difference (endtime-starttime).

It would probably be hard to synchronize to an external (high accuracy) clock as
its count is so fast
that the non-deterministic (timewise) operation of any program would be off by
some significant count
by the time any set instruction could be run.


Skybuck Flying wrote:

> Hi,
>
> I have some questions about the high performance counter.
>
> 1. When the power is off does the high performance counter continue to tick
> ?
>
> 2. If not then how is the high performance counter initialized at boottime ?
>
> 3. Where can I find more information about the chip(s) for the high
> performance counter ?
>
> 4. Is it possible to reset the high performance counter via a software call
> ?
>
> 5. How is the frequency related to the hardware ? I know it's different per
> processor... but is it for example different depending on memory speed ? or
> does it always have a fixed frequency ?
>
> ( note: I changed the windows xp system time to see what would happen, it
> did not affect the high performance counter, so it seems not related to each
> other )
>
> p.s.: I know it's off-topic in some newsgroups I posted too but euhm... I
> didn't know what newsgroup was best suited for it, I hope you understand :)
>
> Thank you,
> Skybuck.



Skybuck Flying 07-09-2003 01:16 AM

Re: High Performance Counter.
 

"Eternal Vigilance" <wotan@oneeye.com> wrote in message
news:3F0B53D4.7A454BA2@oneeye.com...
> I think it just resets when the CPU is powered up, but never thought of

looking
> into it
> since always have used it as a relative time difference

(endtime-starttime).

Yeah... I did a little test and it seems it randomly sets it.

I also use it as relative time... I wondered if it could be used for
something else as well.

So that idea is not 'out the window' :)




All times are GMT. The time now is 07:39 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57