Search in sources :

Example 1 with MSPTInstance

use of com.kahzerx.kahzerxmod.profiler.instances.MSPTInstance in project KahzerxMod by otakucraft.

the class MSPTProfiler method onTick.

@Override
public void onTick(MinecraftServer server, String id) {
    double MSPT = MathHelper.average(server.lastTickLengths) * 1.0E-6D;
    this.addResult(server.getTicks(), new ProfilerResult("mspt", id, new MSPTInstance(MSPT)));
}
Also used : MSPTInstance(com.kahzerx.kahzerxmod.profiler.instances.MSPTInstance) ProfilerResult(com.kahzerx.kahzerxmod.profiler.instances.ProfilerResult)

Aggregations

MSPTInstance (com.kahzerx.kahzerxmod.profiler.instances.MSPTInstance)1 ProfilerResult (com.kahzerx.kahzerxmod.profiler.instances.ProfilerResult)1