MCPcopy Create free account
hub / github.com/FastLED/FastLED / format_simple

Method format_simple

ci/meson/build_timer.py:124–138  ·  view source on GitHub ↗

Format timing as simple summary line.

(self)

Source from the content-addressed store, hash-verified

122 return "\n".join(lines)
123
124 def format_simple(self) -> str:
125 """Format timing as simple summary line."""
126 self.calculate_phases()
127
128 parts = []
129 if self.meson_setup_time > 0:
130 parts.append(f"meson={self.meson_setup_time:.2f}s")
131 if self.compile_time > 0:
132 parts.append(f"compile={self.compile_time:.2f}s")
133 if self.test_execution_time > 0:
134 parts.append(f"tests={self.test_execution_time:.2f}s")
135
136 if parts:
137 return f"Timing: {', '.join(parts)}, total={self.total_time:.2f}s"
138 return f"Total: {self.total_time:.2f}s"

Callers

nothing calls this directly

Calls 2

calculate_phasesMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected