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

Function get_elapsed

ci/util/timestamp_print.py:15–21  ·  view source on GitHub ↗

Get elapsed seconds since program start. Returns: Elapsed time in seconds as a float.

()

Source from the content-addressed store, hash-verified

13
14
15def get_elapsed() -> float:
16 """Get elapsed seconds since program start.
17
18 Returns:
19 Elapsed time in seconds as a float.
20 """
21 return time.time() - _GLOBAL_START_TIME
22
23
24def get_elapsed_str() -> str:

Callers 4

transformMethod · 0.85
transformMethod · 0.85
transformMethod · 0.85
get_elapsed_strFunction · 0.85

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected