Browse Source

Remove stopwatch

pull/109/head
JT 1 year ago
parent
commit
1bfaa45fad
  1. 5
      StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs

5
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<CheckpointFolder>(indexTasks

Loading…
Cancel
Save