Skip to content
Browse files

need to update t _inside_ the loop!

  • Loading branch information...
1 parent bb4b29a commit 00325d5bf1a936ab800aa6fcffc1c58a98bedbe4 @floodyberry committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 test.c
View
4 test.c
@@ -58,8 +58,8 @@ int main() {
for (len = 1; len < 1024; len++) {
sum = 1000000000000000ull;
- t = get_ticks();
for (j = 0; j < outer_reps; j++) {
+ t = get_ticks();
for (i = 0; i < inner_reps; i++)
key[0] += (unsigned char)siphash(key, msg, len);
tempsum = (get_ticks() - t);
@@ -72,4 +72,4 @@ int main() {
}
return 0;
-}
+}

0 comments on commit 00325d5

Please sign in to comment.
Something went wrong with that request. Please try again.