A simple Java JNI implementation that gives high-accuracy per-thread CPU cycle information.  MIT licensed.