public void increment(double val) {
        if (!enabled)
            return;

        lastSampleTime = System.currentTimeMillis();
        if (!sync) {
            count += val;
        } else {
            synchronized (this) {
                count += val;
            }
        }
    }
public void increment ( double val ) { if ( ! enabled ) return ; lastSampleTime = System . currentTimeMillis ( ) ; if ( ! sync ) { count += val ; } else { synchronized ( this ) { count += val ; } } }
/*
Synchronizable: counter is "updated" with the input value