Skip to content

Commit

Permalink
Add evaluation time logs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaus committed Oct 6, 2020
1 parent d9ee4cf commit bed486a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ var (

func fetchMetrics() {
var wg sync.WaitGroup
start := time.Now()
zones := fetchZones()
for _, z := range zones {
wg.Add(1)
Expand Down Expand Up @@ -217,6 +218,8 @@ func fetchMetrics() {
}(z.ID, z.Name)
}
wg.Wait()
elapsed := time.Since(start)
log.Info("Evalutation took ", elapsed)
}

func main() {
Expand Down

0 comments on commit bed486a

Please sign in to comment.