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