MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_start_time

Method get_start_time

pydevd_attach_to_process/winappdbg/process.py:775–788  ·  view source on GitHub ↗

Determines when has this process started running. @rtype: win32.SYSTEMTIME @return: Process start time.

(self)

Source from the content-addressed store, hash-verified

773 # ------------------------------------------------------------------------------
774
775 def get_start_time(self):
776 """
777 Determines when has this process started running.
778
779 @rtype: win32.SYSTEMTIME
780 @return: Process start time.
781 """
782 if win32.PROCESS_ALL_ACCESS == win32.PROCESS_ALL_ACCESS_VISTA:
783 dwAccess = win32.PROCESS_QUERY_LIMITED_INFORMATION
784 else:
785 dwAccess = win32.PROCESS_QUERY_INFORMATION
786 hProcess = self.get_handle(dwAccess)
787 CreationTime = win32.GetProcessTimes(hProcess)[0]
788 return win32.FileTimeToSystemTime(CreationTime)
789
790 def get_exit_time(self):
791 """

Callers

nothing calls this directly

Calls 1

get_handleMethod · 0.95

Tested by

no test coverage detected