def GetDelta(self):
    """Returns the rounded delta.

    Also stops the timer if Stop() has not already been called.
    """
    if self._endtime is None:
      self.Stop(log=False)
    delta = self._endtime - self._starttime
    delta = round(delta, 2) if delta < 10 else round(delta, 1)
    return delta