Well, the title say it all. I wanna know a corresponding method in Android/Java that is like the GetTickCount method in C#/C++?
Thanks in advance!
Well, the title say it all. I wanna know a corresponding method in Android/Java that is like the GetTickCount method in C#/C++?
Thanks in advance!
For android it is SystemClock.uptimeMillis(). Please not that uptimeMIllis does not include time spend in deep sleep. You may need elapsedRealtime() for total time after boot