i found this page and thought it was really interesting about the accuracy of different timer methods. take a look. it's cool. perhaps it should go in the FAQ:
http://www.geocities.com/hao510/w98timer/
Printable View
i found this page and thought it was really interesting about the accuracy of different timer methods. take a look. it's cool. perhaps it should go in the FAQ:
http://www.geocities.com/hao510/w98timer/
If you search the forums for 'high resolution timer' you'll find a couple of threads on this, discussing the mm timer as well as some newer timers.
cool, i'll look around
RTDSC or something similar is the thing to use on a Pentium :D
It's the processor's internal clock, running at the speed of the processor (1.8GHz P4 anyone, that's a LOT of accuracy :D).
Ok I'm wai....ting ..... :D
For the C++ you're writing as we speak, to access it...... could be a long wait, huh?
Already written before, that's how I knew about it (I borrowed the main part of the code from something else, and made it into a slightly better class. There's a slight inaccuracy due to the function call overhead but if you cycle the tested code many times in the same timer stretch it's fine.
What about QueryPerformanceCounter() and QueryPerformanceFrequency()? They are supposed to give really good timing accuracy.
Z.
thanks parksie, looks cool, but i get these errors. any ideas?
Probably something stupid :(:rolleyes:Code:--------------------Configuration: main - Win32 Debug--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol "public: __int64 __thiscall Ticker::Measure(void)" (?Measure@Ticker@@QAE_JXZ)
main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Ticker::OnNT(void)" (?OnNT@Ticker@@QAE_NXZ)
main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Ticker::HasRDTSC(void)" (?HasRDTSC@Ticker@@QAE_NXZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall Ticker::Ticker(void)" (??0Ticker@@QAE@XZ)
Debug/main.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
main.exe - 5 error(s), 0 warning(s)
Did you compile Ticker.cpp as well? It should be included in the project :confused:
Doh! thanks, i knew it was something stupid.
Hehe That worked. Got 'im to post it without begging.... :D
I think I already posted it before this thread anyway :)Quote:
Originally posted by jim mcnamara
Hehe That worked. Got 'im to post it without begging.... :D
Ask long enough, and you'll get most of what I've ever written out of me :D