From 14bd8b0f29914f7bdcc20b87dac00520487fdca3 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 17 Nov 2021 08:25:52 +0100 Subject: [PATCH] chore: show total duration in debug --- src/engine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine.go b/src/engine.go index 11adedca..794812d8 100644 --- a/src/engine.go +++ b/src/engine.go @@ -163,6 +163,7 @@ func (e *engine) debug() string { segmentName := fmt.Sprintf("%s(%t)", segment.name, segment.enabled) e.write(fmt.Sprintf("%-*s - %3d ms - %s\n", largestSegmentNameLength, segmentName, duration, segment.stringValue)) } + e.write(fmt.Sprintf("\n\x1b[1mRun duration:\x1b[0m %s\n", time.Since(start))) e.write("\n\x1b[1mLogs:\x1b[0m\n\n") e.write(e.env.logs()) return e.string()