how to got execution time?
if you want to got the execution time of the process you can insert this code to your program
System.out.println(System.currentTimeMillis());
the value you got from this method are long variable.
if you want know how much time that the program you make it doing the process, you can insert " System.out.println(System.currentTimeMillis()); " before the process and after the process, after that calculate the number that you got after process minus the number you got before process.
some how the values can be the same from 1 process into another process, if that happen. the process you got is very fast.
oh i forgot, the values you got is in milisecond, if you want got how many second you can "/1000".

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home