Skip to content

Instantly share code, notes, and snippets.

@thomwiggers
Created February 10, 2017 14:28
Show Gist options
  • Save thomwiggers/35ea6dad657eefaf59ab7506fb6683b5 to your computer and use it in GitHub Desktop.
Save thomwiggers/35ea6dad657eefaf59ab7506fb6683b5 to your computer and use it in GitHub Desktop.
long long cycles, cycles2;
puts("Measuring...");
for(int i = 0; i < N_TESTS; ++i) {
cycles = cpucycles();
core(fenx, feny, x, 32);
cycles2 = cpucycles();
tests[i] = cycles2 - cycles;
if (i == N_TESTS/2) {
puts("Halfway through");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment