Skip to content

Commit

Permalink
PythonClient: replace time.clock with time.time
Browse files Browse the repository at this point in the history
  • Loading branch information
dayjaby committed Mar 15, 2021
1 parent 9415f8b commit 1a2d7cc
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 1a2d7cc

Please sign in to comment.