示例#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
示例#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
示例#3
0
文件: sandbox.py 项目: rayeya/judge
 def cpu_time(self):
     return execution_time(self.process._handle)
示例#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
示例#5
0
 def cpu_time(self):
     return execution_time(self.process._handle)