def METHOD_NAME(self, ms=1000):
    r"""*New in v3.2.0*
    Periodically returns `True`. This is mostly useful
    for executing
    code (e.g. within a `for` loop) that should only be
    executed once
    in a while.
    Parameters
    ----------
    ms : int, float, optional
        The minimum waiting period.
    Returns
    -------
    bool
        `True` after (at least) the minimum waiting period has
        passed since
        the last call to `Clock.once_in_a_while()`, or
        `False` otherwise.
    Examples
    --------
    >>> for i in range(1000000):
    >>>     if clock.once_in_a_while(ms=50):
    >>>         # Execute this code only once every 50 ms
    >>>         print(clock.time())
    """
    now = self.time()
    if self._last_tick is not None and now - self._last_tick < ms:
        return False
    self._last_tick = now
    return True