Java tutorial
//package com.java2s; import android.os.SystemClock; public class Main { public static long getTimeMillis() { return SystemClock.uptimeMillis(); } }