INNER CODE UNIT · Python
record_stitch
nachifur/MulimgViewer · src/mulimgviewer/src/main.py:52
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
def should_evaluate(self):
now = time.time()
if self.processed_batches - self.last_eval_batch >= self.eval_batch_window: