summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2024-02-26 18:09:55 +0000
committerOliver Upton <oliver.upton@linux.dev>2024-02-26 18:09:55 +0000
commit660be94c5daadf529a303c520422093780759c70 (patch)
tree260287462791155fb70b2772e2d657fa1facc183
parent81d3391617f216f74e3712c82310c2dea5753707 (diff)
downloadaarch64-memcpy-660be94c5daadf529a303c520422093780759c70.tar.gz
Accumulate!
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 315ff3a..af34062 100644
--- a/main.c
+++ b/main.c
@@ -135,7 +135,7 @@ static void report_dcache_time(struct timespec *start, struct timespec *end)
unsigned long msecs;
msecs = (end->tv_sec - start->tv_sec) * MSEC_PER_SEC;
- msecs = (end->tv_nsec - start->tv_nsec) / NSEC_PER_MSEC;
+ msecs += (end->tv_nsec - start->tv_nsec) / NSEC_PER_MSEC;
printf("cache maintenance took %lu milliseconds\n", msecs);
}