A really easy way is to use System.currentTimeInMillis() - it returns the number of milliseconds since "the epoch" (1970)
long start = System.currentTimeInMillis(); // Do some operation. .... .... // howLong has number of millis the operation took long howLong = System.currentTimeInMillis() - start; On Jun 19, 3:25 pm, sm1 <[email protected]> wrote: > look at the documentation for SystemClock class: > > http://developer.android.com/reference/android/os/SystemClock.html > > it should tell you all you want to know. > serge > > On Jun 19, 10:32 am, Michelle Silva <[email protected]> wrote: > > > Hi, > > > i'd like to know how can i measure time to access an aplication in > > the phone? Is there a way to measure time exactly?? If not, what is the > > margin of error??? > > I wanna know this because I will develop an application to measure > > performance of the phone. > > Could you help me?? > > Best regards, > > Michelle. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

