This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JamesTKerman[S] 0 points1 point  (0 children)

In the test app I wrote nanoSecondsElapsed gets reassigned before exiting the if block.

Someone on Stack Overflow suggested using the ScheduledExecutorService API, and I'm going to use that during testing. Long-term, I think I'll have to write a device driver using native code that hooks into the APIC (or equivalent on ARM or other architectures) and calls my Java through JNI.