修改检测时间间隔
This commit is contained in:
parent
602e2af9c2
commit
d1ddf7599f
4
main.go
4
main.go
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue