Measure code execution time in CPU cycles