get_slack

Get the slack of an activity.

The activity slack is equal to the time window between its latest start time (see the P2Schedule:get_latest_start function) and its current start time (see the P2Schedule:get_start function).

Parameters: 
I/O Type Name Description
input integer ID activity ID
output integer slack slack value
Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Schedule