]> OCCT Git - occt.git/commitdiff
0032727: Coding Rules - eliminate CLang warning -Wshorten-64-to-32 in MessageView_Act...
authorkgv <kgv@opencascade.com>
Wed, 8 Dec 2021 19:45:18 +0000 (22:45 +0300)
committersmoskvin <smoskvin@opencascade.com>
Wed, 8 Dec 2021 22:28:36 +0000 (01:28 +0300)
tools/MessageView/MessageView_ActionsTest.cxx

index c085a11de2890a16a645d254c2c638f4b338b89b..afa98b16f92f560e3105ccdb3d3d38a02b782adb 100644 (file)
@@ -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;
 }