Srikanth Chekuri da368ab5e8
feat: add support for not regex (#1328)
* feat: add support for not regex

Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
2022-07-06 15:49:27 +05:30

15 lines
198 B
Go

package utils
import (
"time"
"go.uber.org/zap"
)
func Elapsed(funcName string) func() {
start := time.Now()
return func() {
zap.S().Infof("%s took %v\n", funcName, time.Since(start))
}
}