Measuring Running time of Algorithms