pergi durasi eksekusi
import "time"
func clock(f func()) time.Duration {
t := time.Now()
f()
return time.Since(t)
}
Mackerel
import "time"
func clock(f func()) time.Duration {
t := time.Now()
f()
return time.Since(t)
}