clockblocks.utilities.wait

clockblocks.utilities.wait(dt: float, units='beats') → None[source]

Calls wait() on the clock that is currently active on the thread. Defaults to time.sleep() when no clock is active.

Parameters
  • dt – duration to wait

  • units – either “beats” or “time” (see wait())