here is the code:
```go
func main() {
for i := 0; i < 10; i++ {
start := time.Now()
time.Now().Format("20060102150405")
end := time.Now()
fmt.Println(end.Sub(start))
}
}
// output:
34.9788ms
0s
0s
0s
0s
0s
0s
0s
0s
0s
```
here are my questions:
1. why Format so slow?
2. why Format() become fast after first called?
could someone help me? thanks a lot.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/127495a2-2010-4aac-80a1-ba76cad6ac9f%40googlegroups.com.