Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to GetTickCount
#9
Verrigan Wrote:
Dragoons Master Wrote:Maybe I'll just need to add a few Int() someplaces, but that's ok for now.
You don't want to use Int() because it returns an integer, which is only 2 bytes. My GetTickCount() function returns a Double, which is 8 bytes, so you would (possibly) get an OverFlow error if you try to use Int().

You could, however, modify the GetTickCount() function to return a value without the decimal, but I think it would be faster to leave things as they are.. Smile

Sorry Verry, but "Int()" actually returns a Long. You'd expect that it'd return a Integer based on the name, but a Long IS an integer, but it just doesn't have the same name.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)