-
-
Save adegard/440c34c214bd82377352b8715ba0cd44 to your computer and use it in GitHub Desktop.
Sleep - Pause in VBS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' So simple, so elegant, so elusive. Behold its glory: | |
' ------------------------------------------------------------------ | |
Sub wait_function(secs) | |
Dim enter_time, leave_time | |
enter_time = Timer | |
leave_time = Timer | |
While (enter_time + secs > leave_time) | |
leave_time = Timer | |
Wend | |
end sub | |
' ------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment