测试代码如下- @echo off
- :a
- echo %time%>>1.txt
- ping -n 2 127.1>nul
- goto a
复制代码 结果如下:- 12:29:14.73
- 12:29:16.31
- 12:29:18.08
- 12:29:19.59
复制代码 但是~~~~- @echo off
- :a
- echo %time%>>1.txt
- ping -n 1 127.2>nul
- ping -n 1 127.2>nul
- goto a
复制代码 结果如下- 12:30:07.03
- 12:30:08.24
- 12:30:09.23
- 12:30:10.22
复制代码 综上可致、ping倒计时用- ping -n 1 127.2>nul&ping -n 1 127.2>nul
复制代码 比较好 |