修改检测时间间隔

This commit is contained in:
giaogiao 2023-07-28 16:24:09 +08:00
parent 602e2af9c2
commit d1ddf7599f
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @Author: giaogiao giaogiao
* @Date: 2023-07-28 08:53:13
* @LastEditors: giaogiao giaogiao
* @LastEditTime: 2023-07-28 16:07:39
* @LastEditTime: 2023-07-28 16:22:40
* @FilePath: \go\main.go
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@ -82,7 +82,7 @@ func main() {
for {
timeStr := time.Now().Format("2006-01-02 15:04:05") //当前时间的字符串2006-01-02 15:04:05据说是golang的诞生时间固定写法
fmt.Println("开始检测 " + timeStr) //打印结果2017-04-11 13:24:04
time.Sleep(5000)
time.Sleep(20 * time.Second)
read_a_file()
}