In the example below, I am displaying in Second.
public static void main(String[] args) {
// Initialize some parameters
long stTime = System.currentTimeMillis();
System.out.println("Elapse time: " + ((System.currentTimeMillis() - stTime) / 1000));
System.out.println("End Program");
}
No comments:
Post a Comment