2020-01-06 15:22:46 +01:00
|
|
|
package capture
|
2019-05-13 18:01:50 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2020-01-06 15:22:46 +01:00
|
|
|
func Time(start time.Time, name string) {
|
2019-05-13 18:01:50 +02:00
|
|
|
elapsed := time.Since(start)
|
2019-12-03 12:51:23 +01:00
|
|
|
log.Debugf("%s [%s]", name, elapsed)
|
2019-05-13 18:01:50 +02:00
|
|
|
}
|