use cycle counter to reduce overhead to 20x