toString method

  1. @override
String toString()
override

Returns a string representation of the performance metrics.

Formatted for easy reading in logs or debug output.

Implementation

@override
String toString() {
  return 'YOLOPerformanceMetrics('
      'fps: ${fps.toStringAsFixed(1)}, '
      'processingTime: ${processingTimeMs.toStringAsFixed(3)}ms, '
      'frame: $frameNumber, '
      'timestamp: ${timestamp.toIso8601String()})';
}