home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "WaitFuncs"
- Option Explicit
-
- #If Win32 Then ' 32-bit VB.
- Declare Function GetTickCount Lib "kernel32" () As Long
- #Else ' 16-bit VB.
- Declare Function GetTickCount Lib "User" () As Long
- #End If
-
- ' ************************************************
- ' Pause until GetTickCount shows the indicated
- ' time. This is accurate to within one clock tick
- ' (55 ms), not counting variability in DoEvents
- ' and Windows itself.
- ' ************************************************
- Sub WaitTill(next_time As Long)
- Do
- DoEvents
- Loop While GetTickCount() < next_time
- End Sub
-
-
-