code: def elapsed(self, label=None, total=True):
          
  
          # Get current time
          t = timer()
          # Default label is self.dfltlbl
          if label is None:
              label = self.dfltlbl
              # Return 0.0 if default timer selected and it is not initialised
              if label not in self.t0:
                  return 0.0
          # Raise exception if timer with specified label does not exist
          if label not in self.t0:
              raise KeyError('Unrecognized timer key %s' % label)
          # If total flag is True return sum of accumulated time from
          # previous start/stop calls and current start call, otherwise
          # return just the time since the current start call
          te = 0.0
          if self.t0[label] is not None:
              te = t - self.t0[label]
          if total:
              te += self.td[label]
  
          return te
docs: Get elapsed time since timer start.
  
          Parameters
          ----------
          label : string, optional (default None)
            Specify the label of the timer for which the elapsed time is
            required.  If it is ``None``, the default timer with label
            specified by the ``dfltlbl`` parameter of :meth:`__init__`
            is selected.
          total : bool, optional (default True)
            If ``True`` return the total elapsed time since the first
            call of :meth:`start` for the selected timer, otherwise
            return the elapsed time since the most recent call of
            :meth:`start` for which there has not been a corresponding
            call to :meth:`stop`.
  
          Returns
          -------
          dlt : float
            Elapsed time