diff --git a/src/framegrab/grabber.py b/src/framegrab/grabber.py index 450a49f..3dbfd8b 100644 --- a/src/framegrab/grabber.py +++ b/src/framegrab/grabber.py @@ -691,7 +691,10 @@ def _grab_implementation(self) -> np.ndarray: # Assuming buffer size of 1, we need to read twice to get the current frame. t1 = time.time() for _ in range(2): + t1_inner = time.time() _, frame = self.capture.read() + t2_inner = time.time() + logger.info(f'Debug | reading once: {t2_inner - t1_inner}') t2 = time.time() logger.info(f'Debug | reading twice: {t2 - t1}')