loader: Fix python3 warning
authorMark Young <marky@lunarg.com>
Tue, 30 Oct 2018 22:48:10 +0000 (16:48 -0600)
committerMark Young <marky@lunarg.com>
Thu, 1 Nov 2018 19:31:12 +0000 (13:31 -0600)
Python 3.8 will remove time.clock() and the warnings suggest that
time.process_time() or time.perf_counter() should be used instead.
So, move the script to using time.process_time().

Change-Id: I982da1560adec4aab49f42936334e520456647c1

scripts/loader_genvk.py

index 3ef6f8fc70d82fb4c14723359a0b2ece266a5578..e92079f8e47901b375968285893b20bedafd8500 100644 (file)
@@ -21,11 +21,11 @@ startTime = None
 
 def startTimer(timeit):
     global startTime
-    startTime = time.clock()
+    startTime = time.process_time()
 
 def endTimer(timeit, msg):
     global startTime
-    endTime = time.clock()
+    endTime = time.process_time()
     if (timeit):
         write(msg, endTime - startTime, file=sys.stderr)
         startTime = None