go timer
package main
import (
"fmt"
"time"
)
func main() {
// Create a new timer that will fire after 2 seconds.
timer := time.NewTimer(2 * time.Second)
// Wait for the timer to expire.
<-timer.C
// Print a message after the timer has expired.
fmt.Println("Timer expired!")
}