It can operate in two different modes:
When operating in auto update mode, a Timer is created and the number of transactions (calls to tick()) is automatically calculated for every period. Under this mode, user has to call the stop() method when this TPS object is no longer needed, otherwise it will keep a Thread lingering around.
When operating in manual update mode, user has to call one of its floatValue() or intValue() method at regular intervals. The returned value will be the average TPS for the given period since the last call
. @author Alejandro Revilla, Jeronimo Paolleti and Thiago Moretto @since 1.6.7 r2912
|
|
|
|