reset method

void reset()

reset time and set index to 0

Implementation

void reset() {
  time = 0.0;
  index = 0;
}