adds abilit to report timing for execution

This commit is contained in:
2022-03-21 16:58:05 -05:00
parent cfc719dae3
commit ff9cc1349f
7 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
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)
}