Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 shell 中获取绝对系统启动时间?我试过 cat/proc/uptime,但这只会返回重启后的时间。
基本上是:
java.lang.System.currentTimeMillis() - android.os.SystemClock.elapsedRealtime();