Added time for command execution

This commit is contained in:
David Fowler 2015-10-18 21:24:26 -07:00
parent fc64db1f73
commit 0c5464fa8c

View file

@ -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(