time ti execute java program 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;