Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit ee1b074

Browse files
committed
Add stopwatch
1 parent 8e839e7 commit ee1b074

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

UniqueFileGenerator/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ public static void Main(string[] args)
1010
return;
1111
}
1212

13+
var stopwatch = new System.Diagnostics.Stopwatch();
14+
stopwatch.Start();
15+
1316
var parsedArgs = ArgParser.ParseArgs(args);
1417

1518
try
@@ -34,8 +37,9 @@ public static void Main(string[] args)
3437
catch (Exception ex)
3538
{
3639
AnsiConsole.MarkupLine($"[red]{Resources.CancelledDueToError} {ex.Message}[/]");
37-
return;
3840
}
41+
42+
AnsiConsole.WriteLine($"Done in {stopwatch.ElapsedMilliseconds:#,##0}ms");
3943
}
4044

4145
private static void PrintInstructions()

0 commit comments

Comments
 (0)