1. Are you ready for the Galaxy S20? Here is everything we know so far!

How do I time an action?

Discussion in 'Android Development' started by mathkid95, May 30, 2010.

  1. mathkid95

    mathkid95 Newbie
    Thread Starter

    I am not sure what class to use to time a certain action in Android. I tried using the Time class, but it didn't work. I want to use a class where i can get a starting time before an action, get the time at the end of an action, and subtract the end and the first to get the total time taken to do an action. I need these to be ints or doubles so I can subtract them. Thanks!
     


Loading...

Share This Page

Loading...