add method

void add(
  1. int amount
)

Adds the specified amount of data for the measuring.

Parameters:

  • amount: Amount of data processed.

Implementation

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

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