Skip to content

Commit

Permalink
Create sleeptp.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
npocmaka committed Mar 10, 2017
1 parent 2673acd commit da7a248
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 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
:help
echo.
echo %~n0
echo Sleep emulator
echo Wait for a specified number of seconds.
echo.
echo Usage: CALL %~n0 seconds
echo.
echo seconds - seconds to wait

0 comments on commit da7a248

Please sign in to comment.