   QueryPerformanceCounter() and ...frequency() how?
  Hello,How do I use the QueryPerformanceCounter() and QueryPerfomanceFrequency() functions?I searched for it, but I only found that you had to do:duration = (stop - start) / frequencyBut how do I transform the LARGE_INTEGER type returned by the function into a long or integer,or any other type that I can display using cout?Thanks,Victor Freire   
  You can treat LARGE_INTEGER as __int64.   ;  Also, take a look at this NeHe tutorial. Those functions are used as well as wrapped up into easier to use functions so you can easily see how it all works. But yea, illiyada is correct, you just cout that __int64.[Edited by - Drew_Benton on December 10, 2005 11:45:53 PM];  The standard for LARGE_INTEGER is also long long   ;  LARGE_INTEGER timeStart;LARGE_INTEGER timeEnd;QueryPerformanceCounter(&timeStart);/*****************************************************Do Rendering Here************************************************************/QueryPerformanceCounter(&timeEnd);LARGE_INTEGER anim_rate = (timeEnd.QuadPart - timeStart.QuadPart)float anim_rate = numCounts / timerFrequency.QuadPart;   ;  Drew your link just links back to this thread ;-)Anyways, the link Drew wanted was this NeHe tutorialAtleast on mine it looped back.  When I edited his post it seems he had the right link... Let's hope mine works.If not, manually it's: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=21Edit: Weird mines looping back too... Wonder if I really should reboot, it's been 3 months...-Mike   ;Quote:Original post by Mike2343Drew your link just links back to this thread ;-)Anyways, the link Drew wanted was this NeHe tutorialAh! Thanks lol, I guess it was a mis-copy and paste [wink] Oh never mind, I missed the equals sign in the link tag!   