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