aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index 827eeb2..dfed7eb 100644
--- a/main.go
+++ b/main.go
@@ -78,6 +78,12 @@ func main() {
workAggregator(ctx, opts, answerCh)
}()
+ start := time.Now().Round(time.Second)
+ defer func() {
+ end := time.Now().Round(time.Second)
+ log.Printf("INFO: measurement duration was %v\n", end.Sub(start))
+ }()
+
log.Printf("INFO: generating work\n")
nextLine, readAll := workGenerator(ctx, opts, fp, questionCh)
if !readAll {