From: kgv Date: Wed, 8 Dec 2021 19:45:18 +0000 (+0300) Subject: 0032727: Coding Rules - eliminate CLang warning -Wshorten-64-to-32 in MessageView_Act... X-Git-Tag: V7_7_0_beta~218 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f4f9ce4b77e5051b56bacda7c7ea160ac60abb1f;p=occt.git 0032727: Coding Rules - eliminate CLang warning -Wshorten-64-to-32 in MessageView_ActionsTest.cxx --- diff --git a/tools/MessageView/MessageView_ActionsTest.cxx b/tools/MessageView/MessageView_ActionsTest.cxx index c085a11de2..afa98b16f9 100644 --- a/tools/MessageView/MessageView_ActionsTest.cxx +++ b/tools/MessageView/MessageView_ActionsTest.cxx @@ -150,7 +150,7 @@ void MessageView_ActionsTest::OnTestMetric() return; OCCT_ADD_MESSAGE_LEVEL_SENTRY ("MessageModel_Actions::OnTestMetric()"); - unsigned int start_time = clock(); + clock_t start_time = clock(); Standard_Integer aCounter = 1500; Standard_Real aValue = 0., aValue2 = 0.1; @@ -172,7 +172,7 @@ void MessageView_ActionsTest::OnTestMetric() myTreeModel->UpdateTreeModel(); - unsigned int end_time = clock(); + clock_t end_time = clock(); std::cout << "clock() = " << end_time - start_time << std::endl; }