add method

void add(
  1. int amount
)

Adds the specified amount of data for the measuring.

Implementation

void add(int amount) {
  if (!_clock.isRunning) {
    return;
  }

  _currentAmount = _currentAmount + amount;
  _totalAmount = _totalAmount + amount;
}