Page 1 of 1

Fast timer

Posted: July 30th, 2005, 4:10 am
by rattlebone
How would I get access to a fast (millisecond) timer within the scripting
environment. I know "XUScriptHost.Sleep 5000" will sleep for 5000
millisecs, but was looking for a free running fast timer.

Generally it might be something like the code shown below,
but I'm not sure how to code this for X-Unleashed's VB

Dim StartTickCount As Long
Private Declare Function GetTickCount Lib "kernel32" () As Long
StartTickCount = GetTickCount()