diff --git a/BurnOutSharp/Scanner.cs b/BurnOutSharp/Scanner.cs index aeb2aa67..a0d1d71e 100644 --- a/BurnOutSharp/Scanner.cs +++ b/BurnOutSharp/Scanner.cs @@ -71,6 +71,9 @@ namespace BurnOutSharp if (paths == null || !paths.Any()) return null; + // Set a starting starting time for debug output + DateTime startTime = DateTime.UtcNow; + // Checkpoint FileProgress?.Report(new ProtectionProgress(null, 0, null)); @@ -175,6 +178,10 @@ namespace BurnOutSharp // Clear out any empty keys Utilities.ClearEmptyKeys(protections); + // If we're in debug, output the elasped time to console + if (IncludeDebug) + Console.WriteLine($"Time elapsed: {DateTime.UtcNow.Subtract(startTime)}"); + return protections; }