def get(self):
        """Return the number of seconds elapsed since object creation,
        or since last call to this function, whichever is more recent."""
        elapsed = datetime.now() - self._previous
        self._previous += elapsed
        return elapsed.total_seconds()
def get ( self ) : elapsed = datetime . now ( ) - self . _previous self . _previous += elapsed return elapsed . total_seconds ( )
Return the number of seconds elapsed since object creation,
        or since last call to this function, whichever is more recent.