Calculating the Running Time of a Program

To determine the total time required for a program, we add together the time required for each statement.