Syntax 

int PCMSGetDuration(Trip trip)


Parameters 

Trip trip – Handle to a trip.


Description

Returns the duration of a trip in minutes. To get a valid value, the trip must be run and calculated using an API such as PCMSCalcTrip.


Return Values 

Standard returns

 

Sample Code 

minutes = PCMSGetDuration(trip);
/* Show the duration in hour:minute notation */
           hours = minutes / 60;
           minutes = minutes % 60;
                        printf(“Duration: %ld:%ld\n”, hours, minutes)


Supported Since: PC*MILER Connect 12

Category: Trip Management