From 3e9029838cc68d7d4787a5c12832fa22307e587c Mon Sep 17 00:00:00 2001 From: Wenwen Date: Wed, 11 Dec 2024 09:15:53 +0000 Subject: [PATCH] Initialization Stopwatch class --- src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs b/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs index 37906b1dcc1b..d364a769789e 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs @@ -41,7 +41,7 @@ public CommandResult Execute(Action? processStarted) _process.EnableRaisingEvents = true; - Stopwatch sw = null; + Stopwatch sw = new Stopwatch(); if (CommandLoggingContext.IsVerbose) { sw = Stopwatch.StartNew();