JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
timer.py
Go to the documentation of this file.
1import cv2 as cv
2
3class Timer:
4 def __init__(self):
5 self._tm = cv.TickMeter()
6 self._record = []
7
8 def start(self):
9 self._tm.start()
10
11 def stop(self):
12 self._tm.stop()
13 self._record.append(self._tm.getTimeMilli())
14 self._tm.reset()
15
16 def reset(self):
17 self._record = []
18
19 def getRecords(self):
20 return self._record
getRecords(self)
Definition timer.py:19
__init__(self)
Definition timer.py:4
start(self)
Definition timer.py:8