Hello,
How can I create a timer 1uS? Normally timer in b4j is minimum 1mS
How can I create a timer 1uS? Normally timer in b4j is minimum 1mS
static long nanoTime()
Returns the current value of the most precise available system timer, in nanoseconds.
Dim N As Nanotime
Log(N.NanoTime)
Hello after test I got this result = 12048400807360, what does it means?I don't know if it will be any use to you, but attached is a tiny one function library that just gets the System Nanotime.
From Oracle Docs:
I created it for use in an Android project, but never got round to using it. I would guess that system processing time would make it all but redundant, but it's here if you want to try it. It works on B4j.
B4X:Dim N As Nanotime Log(N.NanoTime)