|
|
| How to use QPC |
|
Road Runner
Member #7,280
May 2006
|
I've been wanting to use QueryPerformanceCounter for quite some time, and I checked out the Microsoft documentation hoping to find out everything I need to know, but what I found was a bunch of Windows code that didn't make an ounce of sense. |
|
Paul whoknows
Member #5,081
September 2004
|
____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
|
Road Runner
Member #7,280
May 2006
|
Thanks, that looks good. I think that's all I really need, but I'm new at programming so I really want to understand how to use QPC myself, so that I can wrap it in whatever code I want. Maybe I should have been more specific in the first place. |
|
23yrold3yrold
Member #1,134
March 2001
|
That's more or less how I use it. Shouldn't be hard to decipher. Basically just use QueryPerformanceFrequency() and QueryPerformanceCounter() to make it track the same speed on all systems, and reference it for all your timing needs. -- |
|
Road Runner
Member #7,280
May 2006
|
I'll just use it until I understand how it works then, and yeah, it's pretty simple code, so it shouldn't take long for me to decipher it. |
|
|