Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |