I wanna know a corresponding method in Android/Java that is like the GetTickCount method in C#/C++?
For Android it is SystemClock.uptimeMillis().
Please note that uptimeMillis()
does not include time spent in deep sleep. You may need SystemClock.elapsedRealtime() for total time after boot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With