|
|
| QueryPerformanceTimer and gettimeofday |
|
Goodbytes
Member #448
June 2000
|
The above functions are said to be the best ways to get accurate, high-resolution time from a program. I've looked up gettimeofday in a C reference, and I understand how it works. However, I've tried searching google and the MSDN for information on QueryPerformanceTimer and I have not found anything useful. I'm sorry if this is blatantly obvious, then, but how do I use QueryPerformanceTimer? And does QueryPerformanceFrequency (I think I saw that somewhere) also have a useful purpose for hi-res timing? Finally, is there a platform other than Windows where I would be better off using an Allegro or other timer than gettimeofday? Thanks a lot. |
|
23yrold3yrold
Member #1,134
March 2001
|
-- |
|
Thomas Fjellstrom
Member #476
June 2000
|
But GameDev is "them", GameDev is "they", GameDev is the other guy... -- |
|
23yrold3yrold
Member #1,134
March 2001
|
And when the other guy has what you want, you go there. GameDev's article section is a wonderous treasure trove of bounty and stuff. -- |
|
Goodbytes
Member #448
June 2000
|
Hmm... slightly confusing, but I think I'll work it out. Thanks, Chris. (Meaningful glance at Thomas) |
|
Thomas Fjellstrom
Member #476
June 2000
|
It's an oppinion that your fact it wrong. -- |
|
23yrold3yrold
Member #1,134
March 2001
|
Quote: It's an oppinion that your fact it wrong. Your opinion is (spelt) wrong! -- |
|
Thomas Fjellstrom
Member #476
June 2000
|
Its fact that I couldn't care less -- |
|
|