From 32fb2605e5e92165fe005d372872c7c86603d2e2 Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Thu, 27 Feb 2014 18:26:19 -0800 Subject: [PATCH] Make the release build compile with the new command line stuff. --- MatterControlApplication.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MatterControlApplication.cs b/MatterControlApplication.cs index 5c7936a60..a57b70f8a 100644 --- a/MatterControlApplication.cs +++ b/MatterControlApplication.cs @@ -272,19 +272,19 @@ namespace MatterHackers.MatterControl listMenuToAddTo.MenuItems.Add(menuItem); } -#if DEBUG Stopwatch totalDrawTime = new Stopwatch(); int drawCount = 0; PerformanceFeedbackWindow timingWindow = null; -#endif static NamedExecutionTimer drawTimer = new NamedExecutionTimer("MatterContorl Draw"); public override void OnDraw(Graphics2D graphics2D) { -#if DEBUG - ExecutionTimer.Instance.Reset(); - totalDrawTime.Restart(); -#endif + if (ShowDrawTimingWindow) + { + ExecutionTimer.Instance.Reset(); + totalDrawTime.Restart(); + } + drawTimer.Start(); base.OnDraw(graphics2D); drawTimer.Stop();