Skip to content
Browse files

Create sleeptp.bat

  • Loading branch information
npocmaka committed Mar 10, 2017
1 parent 2673acd commit da7a248e1c87940e45f522207b094204d38fe92c
Showing with 18 additions and 0 deletions.
  1. +18 −0 DateAndTime/sleeptp.bat
@@ -0,0 +1,18 @@
@echo off
:: yet another sleep emulator working on everything from NT and above
if "%~1"=="" goto :help
ECHO.%*| FINDSTR /R /X /C:"[0-9][0-9]*" >NUL 2>NUL || goto :help
IF %~1 LSS 0 goto :help

typeperf "\System\Processor Queue Length" -si %~1 -sc 1 >nul

goto :eof
echo %~n0
echo Sleep emulator
echo Wait for a specified number of seconds.
echo Usage: CALL %~n0 seconds
echo seconds - seconds to wait

0 comments on commit da7a248

Please sign in to comment.
You can’t perform that action at this time.