elapsed Real time since Boot - Android Android OS

Android examples for Android OS:System Clock

Description

elapsed Real time since Boot

Demo Code


//package com.java2s;
import android.os.SystemClock;

public class Main {
    public static long sinceBoot() {
        return SystemClock.elapsedRealtime();
    }/*  w  ww .j  a v  a  2  s  . c om*/
}

Related Tutorials