Copied!

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
delay call.

Properties
private $lastAccessed
private $microseconds
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only