Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM Creates a delay of specified cents
- :testLoop
- echo CATBISCUIT
- call :delay 450
- goto :testLoop
- pause
- exit /b
- :delay
- call :getAbsTime
- set /a limit=%cent% + %~1
- echo cent: %cent% PREVIOUS: %centPrev% LIMIT: %limit%
- :wait
- title %cent%\%limit%
- set "centPrev=%cent%"
- call :getAbsTime
- if %centPrev% GTR %cent% set /a limit-=100& echo WRAP
- if %cent% LSS %limit% goto :wait
- goto :eof
- :getAbsTime
- for /f "tokens=2 delims=." %%a in ("%time%") do (set "cent=%%a")
- if "%cent:~0,1%" == "0" set "cent=%cent:~1%"
- :goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement