How can i use GetTickCount to check a property really fast(kinda like a timer but faster)
Printable View
How can i use GetTickCount to check a property really fast(kinda like a timer but faster)
what do you mean by "to check a certain property"; what do you want to do?
I assume you mean checking the property every millisecond. If so, use the following code.
Code:Private Declare Function GetTickCount Lib "kernel32" () As Long
Private Sub CheckProperty()
Do
Start = GetTickCount
Do While GetTickCount < Start + 1
DoEvents
Loop
'<--Check your property here-->
Loop
End Sub