INNER CODE UNIT · Python
record_extract
nachifur/MulimgViewer · src/mulimgviewer/src/main.py:48
def record_extract(self, duration):
if duration is not None and duration >= 0:
self.extract_history.append(float(duration))
def record_stitch(self, duration):
if duration is not None and duration >= 0:
self.stitch_history.append(float(duration))
def record_render_interval(self, interval):
if interval is not None and interval > 0:
self.render_history.append(float(interval))
def record_buffer_depth(self, depth):
if depth is not None and depth >= 0:
self.buffer_history.append(int(depth))
def mark_processed_batch(self):
self.processed_batches += 1