package main import ( "fmt" "time" ) func main() { now := time.Now() fmt.Println(now.Nanosecond() / 1000000) }