Beispiel #1
0
void
AbstractTask::UpdateStatsTimes(const AircraftState &state)
{
  if (!stats.task_finished) {
    stats.total.SetTimes(ScanTotalStartTime(state), state);
    stats.current_leg.SetTimes(ScanLegStartTime(state),state);
  }
}
Beispiel #2
0
void
AbstractTask::UpdateStatsTimes(const AircraftState &state)
{
  // default for tasks with no start time...
  stats.Time = state.time;
  if (!TaskFinished()) {
    stats.total.SetTimes(ScanTotalStartTime(state), state);
    stats.current_leg.SetTimes(ScanLegStartTime(state),state);
  }
}