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
def cpu_time(self): return execution_time(self.process._handle)
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