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 milliseconds
> that have elapsed since the system was started.(soemthing like
> "GetTickCount() in Windows mobile")
> Is there any API for the same ?
> Or can anybody share the code, if they have done it already?
>
> Please do share your thoughts.
>
> Thanks for your help,
> Latha
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to