Print message with global elapsed time timestamp. Args: *args: Message parts (joined with spaces). **kwargs: Keyword arguments passed to print().
(*args: Any, **kwargs: Any)
| 31 | |
| 32 | |
| 33 | def 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) |