Class TPSCounter
java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.TPSCounter
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ProxyTPSCounter
,ServerTPSCounter
Class responsible for calculating TPS every second.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ErrorLogger
protected final net.playeranalytics.plugin.server.PluginLogger
-
Constructor Summary
ModifierConstructorDescriptionprotected
TPSCounter
(net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger) -
Method Summary
Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable
cancel
-
Field Details
-
logger
protected final net.playeranalytics.plugin.server.PluginLogger logger -
errorLogger
-
-
Constructor Details
-
TPSCounter
protected TPSCounter(net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Details
-
run
public void run() -
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory) - Specified by:
register
in classTaskSystem.Task
-
pulse
public abstract void pulse()
-