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.
Cloneable
Instantiable
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 |
Properties |
private float $lastAccessed |
private float $microseconds |