   Need help for NVPMGetCounterValueByName
  The code looks like thisreturn (NVPM_OK == NVPMGetCounterValueByName(const_cast<char*>(m_strPerfInfo[1].CStr()),0, &value, &cycle)) ? (float)value / (float)cycle * 100.0f : PERFKIT_NOGOOD;It need to show something like this 0.00 with decimal places, but cycle returns "100".I know my question is little bit awkward, but if anyone could tell me about it, you are saving someone.And one more thing, "Frame time" shows 16 something, even though I set it 60Hz.   
  Please don't cross post. Pick the one forum that is the best fit for your post and leave it there. Most of us browse the site via the Active Topics listing, so we'll see your thread no matter where you put it.   ;Quote:Original post by pnemesisThe code looks like thisreturn (NVPM_OK == NVPMGetCounterValueByName(const_cast<char*>(m_strPerfInfo[1].CStr()),0, &value, &cycle)) ? (float)value / (float)cycle * 100.0f : PERFKIT_NOGOOD;It need to show something like this 0.00 with decimal places, but cycle returns "100".I know my question is little bit awkward, but if anyone could tell me about it, you are saving someone.And one more thing, "Frame time" shows 16 something, even though I set it 60Hz.Do you know the difference between Frequency and Period?Period = 1 / Frequency60Hz (Frequency) = 16.66 milliseconds (Period)Most performance timers report in either milliseconds, microseconds, or a platform specific unit often called "ticks" or "cycles".1000 milliseconds = 1 second1000000 microseconds = 1 secondSome proper division will let you convert back and forth.   ;  I am sorry about cross post.:(Thanks for reply.Let me ask you one more thing.Frame time should be shown as 16.66, but I got only 16.How can I get 16.66?Please let me know more about it.Thank sooooooooooo much   