MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / print_ts

Function print_ts

tools/donate-cpu-server.py:55–57  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

53
54
55def print_ts(msg) -> None:
56 dt = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
57 print('[{}] {}'.format(dt, msg))
58
59
60# Set up an exception hook for all uncaught exceptions so they can be logged

Callers 6

crashReportFunction · 0.85
check_library_reportFunction · 0.85
runMethod · 0.85
read_dataFunction · 0.85
serverFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected