fps property

double get fps

Approximate instantaneous FPS implied by this single frame's total duration, clamped to a sane display range.

Implementation

double get fps {
  final micros = totalDuration.inMicroseconds;
  if (micros <= 0) return 60;
  return (1000000 / micros).clamp(0, 120);
}