Created
December 10, 2013 15:57
-
-
Save frhd/7892966 to your computer and use it in GitHub Desktop.
c++ cycle clocking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clock_t start = clock(); | |
for (int it = 0; it < 1000000; ++it) | |
foo(s); | |
printf("foo took %i cycles\n", clock() - start); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment