diff --git a/PythonClient/multirotor/opencv_show.py b/PythonClient/multirotor/opencv_show.py index 58f8d50e35..447b42f471 100644 --- a/PythonClient/multirotor/opencv_show.py +++ b/PythonClient/multirotor/opencv_show.py @@ -48,7 +48,7 @@ def printUsage(): print (textSize) textOrg = (10, 10 + textSize[1]) frameCount = 0 -startTime=time.clock() +startTime=time.time() fps = 0 while True: @@ -63,7 +63,7 @@ def printUsage(): cv2.imshow("Depth", png) frameCount = frameCount + 1 - endTime=time.clock() + endTime=time.time() diff = endTime - startTime if (diff > 1): fps = frameCount