added getEndTime() for TimedTask