I've been looking at JavaObject and Reflection but this is as far as I've gotten with the getting the value from System.nanoTime. I'm not sure if System.nanoTime is a method or a read field or how to add the System library to my project.
What I'm ultimately trying to do is retrieve a running time value (date isn't important). Hopefully the performance tax isn't high on getting this value but I do need to nanosecond or microsecond precision/accuracy. I don't need a millisecond value that's simply mathematically converted to nanoseconds or microseconds.
The bigger question is why are libraries being maintained as forum posts? This is the most unusual thing I've seen. Besides, sometimes just asking in the forums makes for good chit chat and we can learn even more. Admittingly, I usual google my way into threads of interest and this is how I sometimes find libraries besides using the search field here.
Hi Roger, I am thinking maybe '"nanotime" as keyword can't search it out in the forum?' causes some misunderstanding, it is not a blame at all as I used steve's nanotime lib before so I know it is somewhere but curious maybe the post subject is not nanotime.
I see now there is a library update post in the forum and also a managed excel file for a whole picture, but usually I just searched the forum by keyword and it works great.
I doubt you will get either - spurious precision perhaps but even millisecond accuracy highly unlikely as there are many threads running in parallel with yours in Android sharing one or more of the CPU cores. Android is not a realtime OS.
Online table Libraries developers who want to list their libraries should click on the above link and request writing permission. The IDE will show the online version, clicking on the link will take to the set link. The IDE will also show the comment field when the library is selected. It will...
I doubt you will get either - spurious precision perhaps but even millisecond accuracy highly unlikely as there are many threads running in parallel with yours in Android sharing one or more of the CPU cores. Android is not a realtime OS.
I'm not trying to do a specific task every nanosecond. This would be ridiculous at software level.
The fact that a nanosecond timer even exists suggests that it's done at hardware level. If the hardware maintains the clock then this should be good enough for my application on any modern device it's run on.
At any rate my app can acquire the readings, it should be possible to deduce where a raster beam should be on an emulated CRT, for example.