Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Any Code for getting System.EllapsedRealTime like Android

Hi,

 

I am trying to retreive the code for getting getEllapsedRealTIme()  which is available in android.Is there API related in BB.

 

 

Thanks

Rakesh

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Any Code for getting System.EllapsedRealTime like Android

[ Edited ]

If I understand correctly, what you want is the time since the device was last restarted.  I am not aware of an API that gives you this, but of course if you have a startup alternate entry, note the current time, retain this (I recommend in RuntimeStore), then you can easily calculate it yourself.