analytise the relation of the function calls by using stack, complete calculate the net time and total time of every function cost