ajusted timer to have ability to caculate start time and end time of each line.