06 มิถุนายน 2553

Java program to get unix time stamp

Java program to get unix time stamp


Using java.lang.System.currentTimeMillis() to get the milliseconds of unix time stamp. It is good for computing elapsed times.

example
long start = System.currentTimeMillis()/1000;
.
.
.
long end = System.currentTimeMillis()/1000 - start;


ไม่มีความคิดเห็น:

แสดงความคิดเห็น

บทความยอดนิยม (ล่าสุด)

บทความยอดนิยม (All Time)