Open cn0047 opened 5 years ago
In src/benchmark/main.go replace:
src/benchmark/main.go
startedAt := time.Now().UnixNano() f() finishedAt := time.Now().UnixNano() fmt.Printf("Action: %s, took: %d microseconds \n\n", actionName, (finishedAt - startedAt) / 1000)
with using time.Since function.
time.Since
In
src/benchmark/main.go
replace:with using
time.Since
function.