private String getStats() {
        return "total:#" + totalMsgCount + "/" + totalTime + "ms/avg " + (totalTime / (totalMsgCount == 0 ? 1 : totalMsgCount)) + "ms";
    }
Helper class, gaining and logging statistics about a looper
main/src/main/java/cgeo/geocaching/LooperLogger.java