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

Function get_elapsed_str

ci/util/timestamp_print.py:24–30  ·  view source on GitHub ↗

Get elapsed time formatted as a string. Returns: Elapsed time formatted as "{elapsed:.2f}" (e.g., "5.42").

()

Source from the content-addressed store, hash-verified

22
23
24def get_elapsed_str() -> str:
25 """Get elapsed time formatted as a string.
26
27 Returns:
28 Elapsed time formatted as "{elapsed:.2f}" (e.g., "5.42").
29 """
30 return f"{get_elapsed():.2f}"
31
32
33def ts_print(*args: Any, **kwargs: Any) -> None:

Callers 8

print_bannerFunction · 0.90
print_greenMethod · 0.85
print_yellowMethod · 0.85
print_redMethod · 0.85
print_blueMethod · 0.85
print_cache_hitMethod · 0.85
print_cache_missMethod · 0.85
ts_printFunction · 0.85

Calls 1

get_elapsedFunction · 0.85

Tested by

no test coverage detected