Java tutorial
//package com.java2s; import android.os.SystemClock; public class Main { public static String getBootTimeString() { long ut = SystemClock.elapsedRealtime() / 1000; int h = (int) ((ut / 3600)); int m = (int) ((ut / 60) % 60); return h + ":" + m; } }