From 1bfaa45fadbe8327dece1db7089c14502ac158b7 Mon Sep 17 00:00:00 2001 From: JT Date: Sun, 20 Aug 2023 19:40:52 -0700 Subject: [PATCH] Remove stopwatch --- .../ViewModels/CheckpointsPageViewModel.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs index fe0e10d0..19d1e84c 100644 --- a/StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs @@ -143,8 +143,6 @@ public partial class CheckpointsPageViewModel : PageViewModelBase var folders = Directory.GetDirectories(modelsDirectory); - var sw = new Stopwatch(); - sw.Start(); // Index all folders var indexTasks = folders.Select(async f => { @@ -161,9 +159,6 @@ public partial class CheckpointsPageViewModel : PageViewModelBase await Task.WhenAll(indexTasks); - sw.Stop(); - Logger.Debug("Indexed {Count} folders in {Elapsed} ms", indexTasks.Count, sw.ElapsedMilliseconds); - // Set new observable collection, ordered by alphabetical order CheckpointFolders = new ObservableCollection(indexTasks