Added time for command execution
This commit is contained in:
parent
fc64db1f73
commit
0c5464fa8c
1 changed files with 2 additions and 1 deletions
|
@ -129,6 +129,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
||||||
_processTcs.SetResult(_process.ExitCode);
|
_processTcs.SetResult(_process.ExitCode);
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
var sw = Stopwatch.StartNew();
|
||||||
Console.WriteLine($"> {_process.StartInfo.FileName} {_process.StartInfo.Arguments}");
|
Console.WriteLine($"> {_process.StartInfo.FileName} {_process.StartInfo.Arguments}");
|
||||||
#endif
|
#endif
|
||||||
_process.Start();
|
_process.Start();
|
||||||
|
@ -138,7 +139,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
||||||
var exitCode = await _processTcs.Task;
|
var exitCode = await _processTcs.Task;
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine($"> {_process.StartInfo.FileName} {_process.StartInfo.Arguments} exited with {exitCode}.");
|
Console.WriteLine($"> {_process.StartInfo.FileName} {_process.StartInfo.Arguments} exited with {exitCode} in {sw.ElapsedMilliseconds} ms.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return new CommandResult(
|
return new CommandResult(
|
||||||
|
|
Loading…
Reference in a new issue