use ThreadMXBean for timings