You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2012/07/10 20:32:36 UTC

[jira] [Commented] (CB-1022) Android acceleration sets timestamp to nanosecond time (instead of millisecond)

    [ https://issues.apache.org/jira/browse/CB-1022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410675#comment-13410675 ] 

Joe Bowser commented on CB-1022:
--------------------------------

No. This was done to resolve a failing test on MobileSpec with the Accelerometer API. nanotime updates more than currentTimeMillis.  We might want to massage it to be millis, but that's why it was done.
https://github.com/apache/incubator-cordova-android/commit/ca1a322c7697bc2f927f4d14de309bc203a5f6ff
                
> Android acceleration sets timestamp to nanosecond time (instead of millisecond)
> -------------------------------------------------------------------------------
>
>                 Key: CB-1022
>                 URL: https://issues.apache.org/jira/browse/CB-1022
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0
>            Reporter: Filip Maj
>            Assignee: Joe Bowser
>             Fix For: 2.0.0
>
>
> https://github.com/apache/incubator-cordova-android/blob/master/framework/src/org/apache/cordova/AccelListener.java#L218
> We should probably be setting this to millesecond / system time no?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira