MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / time_info

Method time_info

windows/winobject/process.py:418–432  ·  view source on GitHub ↗

The time information of the process (creation, kernel/user time, exit time) :type: :class:`TimeInfo`

(self)

Source from the content-addressed store, hash-verified

416
417 @property
418 def time_info(self):
419 """The time information of the process (creation, kernel/user time, exit time)
420
421 :type: :class:`TimeInfo`"""
422 CreationTime = FILETIME()
423 ExitTime = FILETIME()
424 KernelTime = FILETIME()
425 UserTime = FILETIME()
426 winproxy.GetProcessTimes(self.limited_handle, CreationTime, ExitTime, KernelTime, UserTime)
427
428 creation = (CreationTime.dwHighDateTime << 32) + CreationTime.dwLowDateTime
429 exit = (ExitTime.dwHighDateTime << 32) + ExitTime.dwLowDateTime
430 kernel = (KernelTime.dwHighDateTime << 32) + KernelTime.dwLowDateTime
431 user = (UserTime.dwHighDateTime << 32) + UserTime.dwLowDateTime
432 return TimeInfo(creation, exit, kernel, user)
433
434 PRIORITY_CLASS_MAPPER = gdef.FlagMapper(
435 ABOVE_NORMAL_PRIORITY_CLASS,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected