Vishal Chand
Vishal Chand

Reputation: 11

"SystemClock.uptimeMillis() method in android"

Android documentation says "uptimeMillis() is counted in milliseconds since the system was booted" for SystemClock.uptimeMillis() method. What is the meaning of "since the system was booted" ? Is it the time since power button was pressed or the time since start of kernel?

Upvotes: 1

Views: 3336

Answers (1)

japk
japk

Reputation: 629

When I do it with my devices, it seems to start counting a couple of seconds after the power button is pressed, so I would say it starts counting as soon as the kernel starts

Upvotes: 1

Related Questions