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); }
public FlightEvent() { time = EventProcessor.GetTimeInTicks(); }