Java System get current time stamp in millisecond long value

Description

Java System get current time stamp in millisecond long value


public class Main {
    public static void main(String[] argv) {
        System.out.println(getCurrentTimeStamp());
    }/*  ww  w.j a va2 s  . co m*/

    public static long getCurrentTimeStamp() {
        return System.currentTimeMillis();
    }
}



PreviousNext

Related