I think you misunderstood what II means. Are you saying that you want your top level function to have the same execution time as any one of the 2 functions you call? If so, then it should be II=3 in the top level. Because II is global. For example, one II is 2ns. Your proc1 and proc2 take 6ns to execute and your top level function also takes 6ns to execute.