Find Execution Time of a java program

by Vinoth 2008-11-21 14:22:21

Hi,
If you want to find execution time of a program or method. Just add the following lines in your coding.

Long st=System.currentTimeMillis();
//coding
Long exeTime=System.currentTimeMillis()-st;

Tagged in:

1572
like
0
dislike
0
mail
flag

You must LOGIN to add comments