locked
How to query cpu core clock speed in metro apps ?

    Question

  • Hi guys, 

    I couldn't  find anything about how to query the processors clock speed in metro apps so far.
    Is there a possibility to do so ?

    Kind regs,
    Roman


    Roman Pfneudl CEO - vertex4 entertainment ltd.

    Wednesday, June 13, 2012 10:49 AM

Answers

  • Nope, we didn't prive any winrt API to achieve it.

    Best Regards,

    Han Xia

    • Marked as answer by v4corg Thursday, June 14, 2012 2:22 PM
    Thursday, June 14, 2012 2:55 AM
    Moderator
  • Hi Roman,

    If you are looking at processor speed as a way to adjust gameplay, then an alternate approach would be to draw a bunch of stuff on a splash screen and time it.  You could use QueryPerformanceCounter/QueryPerformanceFrequency to do so.  Then, you would have an indicator of both CPU + graphics capability in a practical, "what can this system draw, as it relates to my app" perspective.

    I hope this helps!  Good luck!

    Dan Ruder [MSFT]

    • Marked as answer by v4corg Thursday, June 14, 2012 6:40 PM
    Thursday, June 14, 2012 6:10 PM
    Moderator

All replies

  • Nope, we didn't prive any winrt API to achieve it.

    Best Regards,

    Han Xia

    • Marked as answer by v4corg Thursday, June 14, 2012 2:22 PM
    Thursday, June 14, 2012 2:55 AM
    Moderator
  • Eeks, ok. Thank you.

    Roman Pfneudl CEO - vertex4 entertainment ltd.

    Thursday, June 14, 2012 2:22 PM
  • Hi Roman,

    If you are looking at processor speed as a way to adjust gameplay, then an alternate approach would be to draw a bunch of stuff on a splash screen and time it.  You could use QueryPerformanceCounter/QueryPerformanceFrequency to do so.  Then, you would have an indicator of both CPU + graphics capability in a practical, "what can this system draw, as it relates to my app" perspective.

    I hope this helps!  Good luck!

    Dan Ruder [MSFT]

    • Marked as answer by v4corg Thursday, June 14, 2012 6:40 PM
    Thursday, June 14, 2012 6:10 PM
    Moderator
  • Hi Dan,

    Thanks for your reply. Well, i use the couple QueryPerformanceCounter/QueryPerformanceFrequency for not too timecritical measurements. 
    But ofcourse to get the elapsed ticks between each frame.

    I just needed the core speed for profiling purposes.
    I would like to use the processor core speed in combination with RDTSC to get the elapsed ms of certain sections of the code.
    These profiling-routines get called a many thousand times a frame. Anyway it's just for debugging / profiling purposes to see which code runs
    faster and how much. I can still do this now - it's just that i won't get the results in milliseconds which would be nice to compare
    it to other computers / os'. But, oh well.

    Thanks, Roman


    Roman Pfneudl CEO - vertex4 entertainment ltd.

    Thursday, June 14, 2012 6:40 PM