11 lines
156 B
Go
11 lines
156 B
Go
|
package util
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func ProfileTime(start time.Time, name string) {
|
||
|
elapsed := time.Since(start)
|
||
|
log.Debugf("%s took %s", name, elapsed)
|
||
|
}
|