[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread bmcc
Hi, You can get the current system time like this: long startTime = ystem.currentTimeMillis(); long elapsedTime = System.currentTimeMillis() - startTime; B On Oct 7, 11:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread String
How about System.elapsedRealtime() ? That looks like what you're after. String On Oct 7, 11:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed since the system was started.(soemthing like

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread Lance Nanek
The android.os.SystemClock class has some time methods that might be of interest. Actually String's reply might have meant that class too. On Oct 7, 6:49 am, Latha Shivanna latha...@gmail.com wrote: Hi All In one of my Android app, I need to get the number of milliseconds that have elapsed

[android-developers] Re: Any API to get the time elapsed since the system was started?

2009-10-07 Thread String
On Oct 7, 4:52 pm, Lance Nanek lna...@gmail.com wrote: The android.os.SystemClock class has some time methods that might be of interest. Actually String's reply might have meant that class too. Uh, yes it did, sorry. Forgot the Clock. --~--~-~--~~~---~--~~ You