Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void debug() {
- if (debugTimer.elapsed() > 360*1000 || playerExecuted) {
- long averageCycleTime = totalCycleTime / cycles;
- System.out.println("Average Cycle Time: " + averageCycleTime + "ms");
- double engineLoad = ((double) averageCycleTime / (double) cycleRate);
- System.out.println("Players online: " + PlayerHandler.playerCount+ ", engine load: "+ debugPercentFormat.format(engineLoad));
- totalCycleTime = 0;
- cycles = 0;
- System.gc();
- System.runFinalization();
- debugTimer.reset();
- playerExecuted = false;
- }
- }
- public static long getSleepTimer() {
- return sleepTime;
- }
Add Comment
Please, Sign In to add comment