From cba595d9f1e39141d55acef38124e996d977de06 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 25 May 2021 17:34:31 +0200 Subject: [PATCH] feat: add elapsed time at end of scan --- pkg/cmd/scan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/scan.go b/pkg/cmd/scan.go index 7f53bf00..20dbafa1 100644 --- a/pkg/cmd/scan.go +++ b/pkg/cmd/scan.go @@ -7,6 +7,7 @@ import ( "regexp" "strings" "syscall" + "time" "github.com/cloudskiff/driftctl/pkg/telemetry" "github.com/fatih/color" @@ -230,6 +231,8 @@ func scanRun(opts *pkg.ScanOptions) error { return err } + globaloutput.Printf(color.WhiteString("Done in %s\n", analysis.Duration.Round(time.Second))) + if !opts.DisableTelemetry { telemetry.SendTelemetry(analysis) }