Answers for "go execution duration"

Go
1

go execution duration

import "time"
func clock(f func()) time.Duration {
	t := time.Now()
	f()
	return time.Since(t)
}
Posted by: Guest on February-22-2021

Browse Popular Code Answers by Language