def getTimeDistFromFlight(flight):
    """
	Given a flight profile, returns the total time, ground distance and flight distance of that flight profile

	Parameters
	----------
	flight: flight dataframe
		A flight profile to be calculated.

	Returns
	-------
	time: float
		Total time of this flight.
	groundDistance: float
		Total ground distance of this flight.
	flightDistance: float
		Total flight distance of this flight.
	"""
    time = flight['pathEndTimeSec'].max()
    groundDistance = flight['accuGroundDistance'].max()
    flightDistance = flight['accuFlightDistance'].max()
    return [time, groundDistance, flightDistance]
