📌  相关文章
📜  golang sleep - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:44:59.762000             🧑  作者: Mango

代码示例1
package main

import (
    "fmt"
    "time"
)

func main() {
    fmt.Printf("Current Unix Time: %v\n", time.Now().Unix())

    time.Sleep(2 * time.Second)

    fmt.Printf("Current Unix Time: %v\n", time.Now().Unix())
}