Пример #1
0
        internal object GetIdleTime()
        {
            long        totalTime  = 0;
            FlightEvent currentEnd = null;

            for (int i = 0; i < subsequentEvents.Count; i++)
            {
                FlightEvent flightEvent = subsequentEvents[i];
                if (flightEvent is EndFlightCrewEvent)
                {
                    currentEnd = flightEvent;
                }
                else if (currentEnd != null && flightEvent is LaunchCrewEvent)
                {
                    currentEnd = null;
                }
            }
            if (currentEnd != null)
            {
                totalTime += EventProcessor.GetTimeInTicks() - currentEnd.time;
            }

            return(totalTime);
        }
Пример #2
0
 public FlightEvent()
 {
     time = EventProcessor.GetTimeInTicks();
 }