ente/cli/utils/time.go

11 lines
162 B
Go

package utils
import (
"log"
"time"
)
func TimeTrack(start time.Time, name string) {
elapsed := time.Since(start)
log.Printf("%s took %s", name, elapsed)
}