class_docstr: Stop the optimization before running out of a fixed budget of time.
  
  Attributes
  ----------
  iter_time : list, shape (n_iter,)
      `iter_time[i-1]` gives the time taken to complete iteration `i`
  
  Parameters
  ----------
  total_time : float
      fixed budget of time (seconds) that the optimization must
      finish within.
code: def _criterion(self, result):
      elapsed_time = time() - self._time
      self.iter_time.append(elapsed_time)
      self._time = time()
  
      if result.x_iters:
          time_remaining = self.total_time - np.sum(self.iter_time)
          return time_remaining <= np.max(self.iter_time)
      else:
          return None
  
imports: from time import time
  import numpy
  from skopt.utils import dump
label_desc: Use image node_id 2 for calling the DeadlineStopper obj's underlying member method code with example usage: obj._criterion(result) and returns: unknown, None