Hi,

> but if I change the system time in "//do something" , how to caculator
> the spentTime?

>From the API docs: "This method (System.currentTimeMillis()) shouldn't
be used for measuring timeouts or other elapsed time measurements, as
changing the system time can affect the results."

Instead, see the SystemClock-class, SystemClock.uptimeMillis() in
particular.

--
Mika

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to