MCPcopy Index your code
hub / github.com/PyImageSearch/imutils / elapsed

Method elapsed

imutils/video/fps.py:26–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self._numFrames += 1
25
26 def elapsed(self):
27 # return the total number of seconds between the start and
28 # end interval
29 return (self._end - self._start).total_seconds()
30
31 def fps(self):
32 # compute the (approximate) frames per second

Callers 4

fpsMethod · 0.95
fps_demo.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected