class TimeWaitLogger {

    public void logWithRunnable(Runnable runnable) {
        long currentTimeMillis = System.currentTimeMillis();
        if (disabled) {
            runnable.run();
        } else if (currentTimeMillis > lastLogTime + waitTime) {
            lastLogTime = currentTimeMillis;
            runnable.run();
        }

    }

    public  TimeWaitLogger(long waitTimeMills);

}