A small python3 package for uptimes.
Windows
python -m pip install -U uptimes
Linux
python3 -m pip3 install -U uptimes
import uptimes
import time
time.sleep(10)
print(uptimes.uptimes())
print(uptimes.raw_uptimes())
**0** days **0** hours **0** minutes **10** seconds
{"days":0,"hours":0,"minutes":0,"seconds":10}