Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to GetTickCount
#20
I checked this out the first time you posted it and it came with that big conversion overhead - cool to see that you got rid of that!

Great post, Verrigan!

Edit: Not sure if someone has posted this, but if you want to use the format of the function returning instead of passing a variable ByRef, you can create a wrapper like so:

Code:
Public Function CurrentTime() As Currency

    GetSysTimeMS CurrentTime

End Function

Its the same speed just about if you are creating a variable just to hold receive the time value. I personally use most every counter in the format of X = Time + Y, so I find this priceless. :wink:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)