how to calculate execution time of a function in java 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;