@ Exported public int getProgress ( ) { long d = executableEstimatedDuration ; if ( d <= 0 ) { return DEFAULT_ESTIMATED_DURATION ; } int num = ( int ) ( getElapsedTime ( ) * 100 / d ) ; if ( num >= 100 ) { num = 99 ; } return num ; }
Returns the progress of the current build in the number between 0 - 100 .