code: def elapsed(self):
          
          if self.end is None:
              return self() - self.end
          return self.end - self.start
docs: :return: duration in seconds spent in the context.
          :rtype: float