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

Function ts_print

ci/util/timestamp_print.py:33–43  ·  view source on GitHub ↗

Print message with global elapsed time timestamp. Args: *args: Message parts (joined with spaces). **kwargs: Keyword arguments passed to print().

(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

31
32
33def ts_print(*args: Any, **kwargs: Any) -> None:
34 """Print message with global elapsed time timestamp.
35
36 Args:
37 *args: Message parts (joined with spaces).
38 **kwargs: Keyword arguments passed to print().
39 """
40 # Convert args to string and prepend elapsed time
41 message = " ".join(str(arg) for arg in args)
42 timestamped_message = f"{get_elapsed_str()} {message}"
43 print(timestamped_message, **kwargs)

Callers 15

test.pyFile · 0.90
watchdog_timerFunction · 0.90
mainFunction · 0.90
run_qemu_testsFunction · 0.90
_build_docker_imageFunction · 0.90
_run_garbage_collectionFunction · 0.90
run_docker_testsFunction · 0.90
_run_docker_stepFunction · 0.90
run_avr8js_testsFunction · 0.90
show_zccache_statsFunction · 0.90
libfastled_build_lockFunction · 0.90
parse_argsFunction · 0.90

Calls 2

get_elapsed_strFunction · 0.85
printFunction · 0.50

Tested by 9

watchdog_timerFunction · 0.72
mainFunction · 0.72
parse_argsFunction · 0.72
_format_resultMethod · 0.72
_monitor_processMethod · 0.72
_handle_stuck_processesFunction · 0.72
run_test_processesFunction · 0.72
runnerFunction · 0.72