def elapsed_time(self):
        """Get the elapsed time."""

        # Timer is running
        if self._t0 is not None:
            return self._time + self._get_time()
        else:
            return self._time