12 lines
180 B
Go
12 lines
180 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"time"
|
|
)
|
|
|
|
func timeTrack(start time.Time, name string) {
|
|
elapsed := time.Since(start)
|
|
log.Printf("[TRACE] Function %s took %s\n", name, elapsed)
|
|
}
|