java program execution time in seconds 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;