SleepThrottle is a Throttle implementation that generates short pauses using the thread sleep methods. As the pauses get shorter, this technique gets more innacurate. In practice, around 100 Hz is the cap rate for accuracy.
CRC Card
Responsibilities
Collaborations
Accept throttling rate in operations per second.
Inject short pauses to fill out processing cycles to a specified rate.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.