Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pex-tool/pex
/ _get_process_creation_time
Method
_get_process_creation_time
testing/devpi.py:74–79 ·
view source on GitHub ↗
(pid)
Source
from the content-addressed store, hash-verified
72
73
@staticmethod
74
def
_get_process_creation_time(pid):
75
# type: (int) -> Optional[float]
76
try
:
77
return
cast(float, psutil.Process(pid).create_time())
78
except
psutil.Error:
79
return
None
80
81
@classmethod
82
def
record(
Callers
2
alive
Method · 0.95
record
Method · 0.80
Calls
1
cast
Function · 0.90
Tested by
no test coverage detected