Simple Throttle class. Call $throttle->delay() to wait the minimum number of microseconds specified in the constructor.
Default constructor does not result in any delay.
CloneableInstantiable
| Methods |
| public __construct(?int $microseconds = 0) There are 1 million microsecond in a second. |
| public delay() : void Wait at least the number of microseconds since the last delay call. |
| Properties |
| private float $lastAccessed = 0 |
| private float $microseconds = 0 |