Find Execution Time of a java program
by Vinoth[ Edit ] 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;