Wrote a java program to calculate execution time of a program