More accurate cycle counting macros