Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-496815.py
File
recipe-496815.py
recipes/Python/496815_Getting_uptime_windows/recipe-496815.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
uptime():
2
""
"Returns a datetime.timedelta instance representing the uptime in a Windows 2000/NT/XP machine"
""
3
import
os, sys
4
import
subprocess
Callers
nothing calls this directly
Calls
1
uptime
Function · 0.85
Tested by
no test coverage detected