java how to get execution time of method code example
Example: java execution time
long start = System.currentTimeMillis();
class.method();
long time = System.currentTimeMillis() - start;
long start = System.currentTimeMillis();
class.method();
long time = System.currentTimeMillis() - start;