keep track of start and end ticks