mirror of https://github.com/ethereum/go-ethereum
parent
360c66c65d
commit
bf73f02fe0
@ -1,12 +0,0 @@ |
||||
package common |
||||
|
||||
import ( |
||||
"fmt" |
||||
"time" |
||||
) |
||||
|
||||
func Bench(pre string, cb func()) { |
||||
start := time.Now() |
||||
cb() |
||||
fmt.Println(pre, ": took:", time.Since(start)) |
||||
} |
Loading…
Reference in new issue