Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to GetTickCount
#18
The stupid thing likes to work every once in a while. I run the thing and I get overflow at the weirdest locations now. I split that one big line into multiple lines (slowing it down, but it might work more consistently...) but I'm getting overflow every once in a while and now it's telling me that "22 * 1000 = overflow". I really don't understand why it's giving me these errors, but it's weird.

I managed to run it a few times without the error and the speed results aren't good enough for me to continue.

GetTick - 3.7
Verrigan's - 4.1
Mine - 5.0


Oh and Verrigan, it seems awfully forced when you say "Can't wait to see yours working".


EDIT:
I just had another idea. Why don't we just make our own TickCount like Microsoft does? Make a timer that just increases a variable every certain amount of time.

EDIT EDIT:
I've made a basic version of that idea, but it's not going so great. The interval is set to "100" and even then it doesn't keep an accurate second (it's a bit slower). I ran a speed test though and it's 3.7 for my method and 3.9 for Microsoft's, but that speed increase isn't really worth it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)