diff --git a/src/BingImageDownload/BingInteractionAndParsing.cs b/src/BingImageDownload/BingInteractionAndParsing.cs index 3711bab..4042a02 100644 --- a/src/BingImageDownload/BingInteractionAndParsing.cs +++ b/src/BingImageDownload/BingInteractionAndParsing.cs @@ -104,7 +104,7 @@ public BingInteractionAndParsing(ConsoleWriter consoleWriter, ImageFingerprintin consoleWriter.WriteLine($"Found {countryDownloadedImages} new images for {country.Name}"); consoleWriter.WriteLine($"Found {countryDuplicateImages} duplicate images for {country.Name}"); consoleWriter.WriteLine($"Found {countrySeenUrls} urls already downloaded for {country.Name}"); - consoleWriter.WriteLine($"Duration {stopwatch.Elapsed.TotalSeconds} seconds for {country.Name}"); + consoleWriter.WriteLine($"Duration {Math.Round(stopwatch.Elapsed.TotalSeconds, 2)} seconds for {country.Name}"); consoleWriter.WriteLine(""); return (countryDownloadedImages, countryDuplicateImages, countrySeenUrls); diff --git a/src/BingImageDownload/Runner.cs b/src/BingImageDownload/Runner.cs index 57eee49..d69c255 100644 --- a/src/BingImageDownload/Runner.cs +++ b/src/BingImageDownload/Runner.cs @@ -51,7 +51,7 @@ public static int Start(RunnerArgs runnerArgs, in CancellationToken cancellation consoleWriter.WriteLine($"Found {downloadedImages} new images"); consoleWriter.WriteLine($"Found {duplicateImages} duplicate images"); consoleWriter.WriteLine($"Found {seenUrls} urls already downloaded"); - consoleWriter.WriteLine($"Duration {stopwatch.Elapsed.TotalMinutes} minutes"); + consoleWriter.WriteLine($"Duration {Math.Round(stopwatch.Elapsed.TotalMinutes, 2)} minutes"); if (cancellationToken.IsCancellationRequested) {