SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use android.os.SystemClock. For example SystemClock.elapsedRealtime() will give you more accurate time readings when the phone is asleep.