Skip to content

Commit

Permalink
adding some debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
timmarkhuff committed Sep 3, 2024
1 parent 79bbacd commit a80db62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/framegrab/grabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@ def grab(self) -> np.ndarray:
"""Read a frame from the camera and perform post processing operations such as zoom, crop and rotation if necessary.
Returns a frame.
"""
t1 = time.time()
frame = self._grab_implementation()
t2 = time.time()
logger.info(f'_grab_implementation completed in {t2 - t1}')

if frame is None:
name = self.config["name"] # all grabbers should have a name, either user-provided or generated
Expand Down

0 comments on commit a80db62

Please sign in to comment.