Skip to content

Commit

Permalink
Merge pull request #3468 from dayjaby/pycli-time_time
Browse files Browse the repository at this point in the history
PythonClient: replace time.clock with time.time
  • Loading branch information
Jonathan authored Mar 25, 2021
2 parents 2c07d98 + 1a2d7cc commit 5e52728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PythonClient/multirotor/opencv_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 5e52728

Please sign in to comment.