From bf9a85222c58a2d7f5c3ee37d1ab679fad6c78c3 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 25 Oct 2019 01:06:17 -0400 Subject: [PATCH] print the time it takes to completely load UE UI --- CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs index c18d5f00..b0aa6bd5 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -31,8 +31,12 @@ namespace UniversalEditor.UserInterface private static Engine _TheEngine = new Engine(); private SplashScreenWindow splasher = null; + private System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); + private void ShowSplashScreen() { + sw.Reset(); + sw.Start(); // if (LocalConfiguration.SplashScreen.Enabled) // { splasher = new SplashScreenWindow(); @@ -51,6 +55,8 @@ namespace UniversalEditor.UserInterface AfterInitialization(); OpenWindow(SelectedFileNames.ToArray()); + sw.Stop(); + Console.WriteLine("stopwatch: went from rip to ready in {0}", sw.Elapsed); } #region implemented abstract members of Engine