Answers for "program execution time in golang"

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

Code answers related to "program execution time in golang"

Browse Popular Code Answers by Language