From 9250f4d919bc800fe66a50a0874183458e6ebbbe Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 10 Sep 2018 23:58:34 +0800 Subject: ... --- CruUI/ui/control.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'CruUI/ui/control.cpp') diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp index 507beee8..73981891 100644 --- a/CruUI/ui/control.cpp +++ b/CruUI/ui/control.cpp @@ -6,6 +6,7 @@ #include "window.h" #include "timer.h" +#include "debug_base.h" namespace cru { namespace ui { @@ -257,12 +258,9 @@ namespace cru { void Control::Layout(const Rect& rect) { - auto before = std::chrono::steady_clock::now(); SetPositionRelative(rect.GetLeftTop()); SetSize(rect.GetSize()); OnLayout(rect); - auto after = std::chrono::steady_clock::now(); - OutputDebugStringW((L"Layout time duration:" + std::to_wstring(std::chrono::duration_cast(after - before).count()) + L"\n").c_str()); } Size Control::GetDesiredSize() const -- cgit v1.2.3