- 帖子
- 2
- 积分
- 13
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2014-6-10
|
8楼
发表于 2014-6-10 16:03
| 只看该作者
@echo off
set time_start=%time%
if "" == "%1" (
goto error
)
:t_r
set /a time_=%1*100-((1%time:~0,2%-1%time_start:~0,2%)*360000+(1%time:~3,2%-1%time_start:~3,2%)*6000+(1%time:~6,2%-1%time_start:~6,2%)*100+(1%time:~9,2%-1%time_start:~9,2%))
cls & echo %time_%ms
if %time_% gtr 0 (
goto :t_r
) else (
goto :EOF
)
:error
echo "input time"
你看看这个你能用吗?非常浪费CPU |
|