Read the system time just before the method is invoked and immediately after method returns take the time difference,which 'll give you the time taken by a method for execution.
use this code.....
long start=System.currentTimeMillis();
method();
long end=System.currentTimeMillis();
System.out.println("Time taken for execution is"+(end-start));