PDA

Click to See Complete Forum and Search --> : Interesting page about time accuracy...


sail3005
Nov 1st, 2001, 11:23 AM
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/

jim mcnamara
Nov 1st, 2001, 12:05 PM
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.

sail3005
Nov 1st, 2001, 12:32 PM
cool, i'll look around

parksie
Nov 1st, 2001, 02:01 PM
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).

jim mcnamara
Nov 1st, 2001, 03:49 PM
Ok I'm wai....ting ..... :D

For the C++ you're writing as we speak, to access it...... could be a long wait, huh?

parksie
Nov 1st, 2001, 03:55 PM
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.

Zaei
Nov 1st, 2001, 04:45 PM
What about QueryPerformanceCounter() and QueryPerformanceFrequency()? They are supposed to give really good timing accuracy.

Z.

sail3005
Nov 1st, 2001, 05:01 PM
thanks parksie, looks cool, but i get these errors. any ideas?

--------------------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)

Probably something stupid :(:rolleyes:

parksie
Nov 1st, 2001, 05:05 PM
Did you compile Ticker.cpp as well? It should be included in the project :confused:

sail3005
Nov 1st, 2001, 05:07 PM
Doh! thanks, i knew it was something stupid.

jim mcnamara
Nov 1st, 2001, 05:40 PM
Hehe That worked. Got 'im to post it without begging.... :D

parksie
Nov 2nd, 2001, 06:56 AM
Originally posted by jim mcnamara
Hehe That worked. Got 'im to post it without begging.... :D I think I already posted it before this thread anyway :)

Ask long enough, and you'll get most of what I've ever written out of me :D