summaryrefslogtreecommitdiff
path: root/mbw.c
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-09-27 14:05:53 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-09-27 14:05:53 +0200
commit29f2abadf3bec93228cc6f535fa5db027ed77917 (patch)
tree00c99e7b77343a6636698a42d189d68686eef510 /mbw.c
parent2a0f584c77efe466f0e6e7a7d056bffbc297e032 (diff)
Fix -t4 in non-pthread mode
Diffstat (limited to 'mbw.c')
-rw-r--r--mbw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbw.c b/mbw.c
index 91d94fc..5f294f4 100644
--- a/mbw.c
+++ b/mbw.c
@@ -515,9 +515,11 @@ double worker()
#endif // HAVE_AVX512
} else if(test_type==TEST_READ_DUMB) {
long tmp = 0;
+ clock_gettime(CLOCK_MONOTONIC, &starttime);
for(t=0; t<arr_size; t++) {
tmp ^= arr_a[t];
}
+ clock_gettime(CLOCK_MONOTONIC, &endtime);
arr_b[arr_size-1] = tmp;
}
#endif // MULTITHREADED