Skip to content

Commit 3f34088

Browse files
author
Oren Novotny
committed
Add duration onto signed output
1 parent fab5a6d commit 3f34088

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SignClient/SignCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics;
34
using System.IO;
45
using System.Linq;
56
using System.Net;
@@ -169,6 +170,8 @@ CommandOption maxConcurrency
169170
{
170171
FileInfo output;
171172

173+
var sw = Stopwatch.StartNew();
174+
172175
// Special case if there's only one input file and the output has a value, treat it as a file
173176
if(inputFiles.Count == 1 && outputFile.HasValue())
174177
{
@@ -226,7 +229,7 @@ CommandOption maxConcurrency
226229
using var fs = new FileStream(output.FullName, FileMode.Create);
227230
str.CopyTo(fs);
228231

229-
signCommandLineApplication.Out.WriteLine($"Successfully signed '{output.FullName}'");
232+
signCommandLineApplication.Out.WriteLine($"Successfully signed '{output.FullName}' in {sw.ElapsedMilliseconds} ms");
230233
});
231234

232235

0 commit comments

Comments
 (0)