Golang Sleep

[Solved] Golang Sleep | Go - Code Explorer | yomemimo.com
Question : golang sleep

Answered by : bugs-bunny

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())
}

Source : https://golangcode.com/sleeping-with-go/ | Last Update : Sat, 05 Dec 20

Answers related to golang sleep

Code Explorer Popular Question For Go