INNER CODE UNIT · Dart
toMap
ultralytics/yolo-flutter-app · lib/yolo_performance_metrics.dart:72
Map<String, dynamic> toMap() {
return {
'fps': fps,
'processingTimeMs': processingTimeMs,
'frameNumber': frameNumber,
'timestamp': timestamp.millisecondsSinceEpoch,
'preMs': preMs,
'inferenceMs': inferenceMs,
'postMs': postMs,
};
}
/// Returns a string representation of the performance metrics.
///
/// Formatted for easy reading in logs or debug output.
@override
String toString() {
return 'YOLOPerformanceMetrics('