get_real_project_duration

Get the real duration of the project.

The real duration of the project is only known when all activities are finished, i.e. when the project percentage completion is equal of 100%. The percentage project completion can be found by calling the P2Tracking:get_project_percentage_completed function. This function returns 0 when the project is not started yet or not finished yet, and return the real project duration otherwise. 

The real project duration can be compared to the planned duration to see whether the project finished ahead of schedule, on time or too late. The planned duration (PD) of the project can be obtained by calling the P2Schedule:get_project_pd function.

Parameters: 
I/O Type Name Description
output integer duration real total project duration
Example: 
function ()
        io.write('\n')
end
Class: 
P2Tracking