示例#1
0
 def get_process_create_time(self):
     # special case for kernel process PIDs; return system boot time
     if self.pid in (0, 4):
         return BOOT_TIME
     try:
         return _psutil_mswindows.get_process_create_time(self.pid)
     except OSError:
         err = sys.exc_info()[1]
         if err.errno in ACCESS_DENIED_SET:
             return _psutil_mswindows.get_process_create_time_2(self.pid)
         raise
示例#2
0
 def get_process_create_time(self):
     # special case for kernel process PIDs; return system boot time
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return BOOT_TIME
     return _psutil_mswindows.get_process_create_time(self.pid)
示例#3
0
 def get_process_create_time(self):
     # special case for kernel process PIDs; return system boot time
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return BOOT_TIME
     return _psutil_mswindows.get_process_create_time(self.pid)
示例#4
0
 def get_process_create_time(self, pid):
     # special case for kernel process PIDs; return system uptime
     if pid in (0, 4):
         return _UPTIME
     return _psutil_mswindows.get_process_create_time(pid)