Hi, Android's framework does not use System.currentTimeMillis() but android.os.SystemClock which gives the time in ms since the startup of the system (read the javadocs for more details about the various available methods.)
On Fri, Mar 28, 2008 at 1:39 PM, wonderoid <[EMAIL PROTECTED]> wrote: > > Hi; > I am unable to understand how to convert these values into the format > of System.getCurrentTimeMillis(). Appearantly they are both long (at > least the document says so), however their 0 point seems to be > different. > > For example; I handle a touch event in dispatchMotionEvent() method > of a view and i simply print out its getEventTime() value and current > system time(System.getCurrentTimeMillis()) together. > The first one is: 1421924 and system is : 1206736087987, whilst they > must be the same (or only a few ms different) > > Appearently there is a format difference, so how am i going to convert > between these 2 values? (I am not sure if substracting a constant > value will work. (The first value might not be a long i.e a native > unsigned int converted to long at some point --> fail...) > > Can anybody explain this (or at least note this to improve the > documents in the future), thanks in advance. > > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

