From efa8ad4e1771faffe4672a73741c8722abc208f7 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Wed, 24 Mar 2021 09:22:21 -0500 Subject: [PATCH] Edited sieve to work with wally. It was using the time of day to compute runspeed; however this functionality does not yet work in the wally software stack. --- testsBP/sieve/sieve.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/testsBP/sieve/sieve.c b/testsBP/sieve/sieve.c index 949d9fde..e8207404 100644 --- a/testsBP/sieve/sieve.c +++ b/testsBP/sieve/sieve.c @@ -61,26 +61,26 @@ int main () { int ans; - struct timeval before , after; - gettimeofday(&before , NULL); + //struct timeval before , after; + //gettimeofday(&before , NULL); ans = sieve (); - gettimeofday(&after , NULL); + //gettimeofday(&after , NULL); if (ans != 1899) printf ("Sieve result wrong, ans = %d, expected 1899", ans); - printf("Total time elapsed : %.0lf us\n" , time_diff(before , after) ); + //printf("Total time elapsed : %.0lf us\n" , time_diff(before , after) ); printf("Round 2\n"); - gettimeofday(&before , NULL); + //gettimeofday(&before , NULL); ans = sieve (); - gettimeofday(&after , NULL); + //gettimeofday(&after , NULL); if (ans != 1899) printf ("Sieve result wrong, ans = %d, expected 1899", ans); - printf("Total time elapsed : %.0lf us\n" , time_diff(before , after) ); + //printf("Total time elapsed : %.0lf us\n" , time_diff(before , after) ); return 0;