Java tutorial
//package com.java2s; import android.os.SystemClock; public class Main { public static long ticksToNow(long l) { return SystemClock.elapsedRealtime() - l; } }