damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

eventPoll() /eventWait() to return time-stamps respecting scripting language conventions #99

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?

Currently, the time-stamps returned by eventPoll() etc are of the form u'time': 
1297072704813000L - ie. microsecond resolution (actually milliseconds - the 3 
least sig digits always show 0). I believe this is the standard for java based 
languages

In Python however for instance, time.time() returns a floating point number 
with resolution in "seconds"

this has potential to become a "gotcha" if anyone starts doing work with event 
timestamps 

Original issue reported on code.google.com by srinathd...@gmail.com on 1 May 2012 at 4:48

Copied from original issue: damonkohler/android-scripting#623