flat assembler
Message board for the users of flat assembler.
Index
> Windows > Aproximating the CPU clock rate |
Author |
|
l_inc 15 Feb 2015, 14:34
revolution
On modern CPUs the TSC is unrelated to the current CPU clock rate, and in most cases is incremented according to the CPU base frequency. _________________ Faith is a superposition of knowledge and fallacy |
|||
15 Feb 2015, 14:34 |
|
revolution 15 Feb 2015, 16:15
Suggestion on how to fix it for these "modern" CPUs?
|
|||
15 Feb 2015, 16:15 |
|
l_inc 15 Feb 2015, 17:03
revolution
Sure. You should read the performance monitor counter values such as the "unhalted core cycles" counter. Sure you need a driver at least for configuring the counters properly. _________________ Faith is a superposition of knowledge and fallacy |
|||
15 Feb 2015, 17:03 |
|
HaHaAnonymous 15 Feb 2015, 17:19
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 17:56; edited 1 time in total |
|||
15 Feb 2015, 17:19 |
|
l_inc 15 Feb 2015, 17:31
HaHaAnonymous
Quote: Please define modern... Pretty much all the Intel CPUs released during the last 10 years (since late P4). Quote: The code worked fine for my CPU It is fine, if you accept any arbitrary value as fine. _________________ Faith is a superposition of knowledge and fallacy |
|||
15 Feb 2015, 17:31 |
|
HaHaAnonymous 15 Feb 2015, 21:11
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 17:55; edited 1 time in total |
|||
15 Feb 2015, 21:11 |
|
l_inc 15 Feb 2015, 22:53
HaHaAnonymous
Quote: My CPU box says it runs at 2.6GHz, 2594MHz is precise enough. As I said before, the TSC "in most cases is incremented according to the CPU base frequency". In your case 2.6GHz is the base frequency. But if you have Turbo Boost enabled, or if you try to change the actual CPU frequency by altering the CPU clock multiplier in the BIOS, you'll still get the 2.6GHz, even though this value wouldn't be correct. Try to compare the value you get from revolution's snippet to the value displayed by the CPU-Z. _________________ Faith is a superposition of knowledge and fallacy |
|||
15 Feb 2015, 22:53 |
|
HaHaAnonymous 16 Feb 2015, 00:53
[ Post removed by author. ]
|
|||
16 Feb 2015, 00:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.