Esempio n. 1
0
 def _update_windows_stats(self):
     handle = int(self.process._handle)
     self.execution_time = execution_time(handle)
     self.tie = self.execution_time > self.time_limit
     self.max_memory = max_memory(handle) / 1024.
     self.mle = self.max_memory > self.memory_limit
     if self.returncode is None:
         self.returncode = self.process.returncode
Esempio n. 2
0
 def _update_windows_stats(self):
     handle = int(self.process._handle)
     self.execution_time = execution_time(handle)
     self.tie = self.execution_time > self.time_limit
     self.max_memory = max_memory(handle) / 1024.
     self.mle = self.max_memory > self.memory_limit
     if self.returncode is None:
         self.returncode = self.process.returncode
Esempio n. 3
0
 def cpu_time(self):
     return execution_time(self.process._handle)
Esempio n. 4
0
 def _update_stats(self):
     self.execution_time = execution_time(self._process)
     self.tle |= self.execution_time > self.time_limit
     self.max_memory = max_memory(self._process) / 1024.
     self.mle |= self.max_memory > self.memory_limit
Esempio n. 5
0
 def cpu_time(self):
     return execution_time(self.process._handle)