mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-19 09:01:32 +01:00
Profile settings load duration
This commit is contained in:
1 parent
834c3ae2b0
commit
6725bc381c
1 file changed
+6
@@ -5,6 +5,7 @@ using FileConverter.Properties;
|
||||
namespace FileConverter.Services
|
||||
{
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Windows;
|
||||
|
||||
@@ -125,7 +126,12 @@ namespace FileConverter.Services
|
||||
Settings userSettings = null;
|
||||
try
|
||||
{
|
||||
var stopwatch = new Stopwatch();
|
||||
stopwatch.Start();
|
||||
XmlHelpers.LoadFromFile<Settings>("Settings", FileConverterExtension.PathHelpers.UserSettingsFilePath, out userSettings);
|
||||
stopwatch.Stop();
|
||||
Debug.Log($"Settings load time: {stopwatch.Elapsed.TotalMilliseconds}ms");
|
||||
|
||||
settings = userSettings;
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in new issue
Block a user