running time 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;