getAndResetCounter method

int getAndResetCounter()

Implementation

int getAndResetCounter() {
  int tmp = counter;
  counter = 0;
  return tmp;
}