Advertisement
Guest User

sleep

a guest
Apr 8th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. @ECHO OFF
  2. SETLOCAL EnableExtensions
  3. CALL :ProcDelay 200
  4. ECHO %TIME%
  5. GOTO :EOF
  6.  
  7. :ProcDelay delayMSec_
  8. SETLOCAL EnableExtensions
  9. FOR /f "tokens=1-4 delims=:. " %%h IN ("%TIME%") DO SET start_=%%h%%i%%j%%k
  10. :_procwaitloop
  11. FOR /f "tokens=1-4 delims=:. " %%h IN ("%TIME%") DO SET now_=%%h%%i%%j%%k
  12. SET /a diff_=%now_%-%start_%
  13. IF %diff_% LSS %1 GOTO _procwaitloop
  14. ENDLOCAL & GOTO :EOF
  15. :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement