Revision: 77867
          http://sourceforge.net/p/brlcad/code/77867
Author:   starseeker
Date:     2020-12-02 03:21:26 +0000 (Wed, 02 Dec 2020)
Log Message:
-----------
Use the C++ style clock() for consistency

Modified Paths:
--------------
    brlcad/trunk/src/librt/timer.cpp

Modified: brlcad/trunk/src/librt/timer.cpp
===================================================================
--- brlcad/trunk/src/librt/timer.cpp    2020-12-02 03:11:49 UTC (rev 77866)
+++ brlcad/trunk/src/librt/timer.cpp    2020-12-02 03:21:26 UTC (rev 77867)
@@ -31,7 +31,7 @@
 #ifdef HAVE_GETPROCESSTIMES
 static double  time_cpu;       /* Time at which timing started */
 #else
-static clock_t time_cpu;       /* Time at which timing started */
+static std::clock_t time_cpu;  /* Time at which timing started */
 #endif
 static std::chrono::steady_clock::time_point time_wall;
 
@@ -48,7 +48,7 @@
     /* https://stackoverflow.com/a/17440673 */
     time_cpu = (double)(d.dwLowDateTime | ((unsigned long 
long)d.dwHighDateTime << 32)) * 0.0000001;
 #else
-    time_cpu = clock();
+    time_cpu = std::clock();
 #endif
     time_wall = std::chrono::steady_clock::now();
 }
@@ -71,7 +71,7 @@
     time1 = (double)(d.dwLowDateTime | ((unsigned long long)d.dwHighDateTime 
<< 32)) * 0.0000001;
     user_cpu_secs = time1 - time0;
 #else
-    clock_t time1 = clock();
+    std::clock_t time1 = std::clock();
     user_cpu_secs = (double)(time1 - time_cpu)/CLOCKS_PER_SEC;
 #endif
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to