Yea i'm cross posting from the BeyondUnreal forums, but i'm getting desperate. The original thread is here...
http://forums.beyondunreal.com/showthread.php?t=137449
I'm trying to time some code and getting some weird results. I'm using some code like the following....
The problem is that i get what seems to be garbage elapsed times. For instance i'll get 324.34ms, 322.47ms, then get -500.23ms. This happens with StopWatch() too.
Timing something that with my watch it took 63 seconds... what does UnClock give me? -223.67ms!!!
People have suggested averaging results and dropping negative time, but after seeing this i've lost all faith in Clock/Unclock being right at all for any timing.
Any other suggestions on how to get it working?
http://forums.beyondunreal.com/showthread.php?t=137449
I'm trying to time some code and getting some weird results. I'm using some code like the following....
Code:
exec function DoMyTest() { local float elapsed; Clock( elapsed ); // do some junk... UnClock( elapsed ); ClientMessage( elapsed$ "ms" ); }
Timing something that with my watch it took 63 seconds... what does UnClock give me? -223.67ms!!!
People have suggested averaging results and dropping negative time, but after seeing this i've lost all faith in Clock/Unclock being right at all for any timing.
Any other suggestions on how to get it working?
Comment