code: private void updateTimeRange(long timestamp) {
          // update the timestamp ranges
          if (timestamp < startTime) {
              startTime = timestamp;
          } 
          if (timestamp > endTime) {
              endTime = timestamp;
          }
      }
docs: Updates the start and end times if this time stamp exceeds either.