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

Class TimestampFormatter

ci/util/output_formatter.py:96–112  ·  view source on GitHub ↗

Simple formatter that adds timestamps relative to program start.

Source from the content-addressed store, hash-verified

94
95
96class TimestampFormatter:
97 """Simple formatter that adds timestamps relative to program start."""
98
99 def __init__(self) -> None:
100 pass # No per-instance start time needed, use global elapsed
101
102 def begin(self) -> None:
103 pass # No per-instance setup needed
104
105 def transform(self, line: str) -> str:
106 if not line:
107 return line
108 elapsed: float = get_elapsed()
109 return f"{elapsed:.2f} {line}"
110
111 def end(self) -> None:
112 return None
113
114
115class FilteringTimestampFormatter:

Callers 15

run_testFunction · 0.90
run_compileFunction · 0.90
run_uploadFunction · 0.90
run_monitorFunction · 0.90
run_qemu_testsFunction · 0.90
run_avr8js_testsFunction · 0.90
_run_meson_setupFunction · 0.90
compile_mesonFunction · 0.90
run_direct_testFunction · 0.90
test_callbackFunction · 0.90
run_meson_testFunction · 0.90

Calls

no outgoing calls

Tested by 9

run_testFunction · 0.72
test_callbackFunction · 0.72
run_meson_testFunction · 0.72
create_unit_test_processFunction · 0.72
create_wasm_test_processFunction · 0.72