mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
lib: Fixup u64 multiply for computing nanoseconds
32bit builds ran into a silly multiplication issue when computing elapsed nanoseconds of more than 2s... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+1
-1
@@ -412,7 +412,7 @@ uint64_t igt_nsec_elapsed(struct timespec *start)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return ((now.tv_nsec - start->tv_nsec) +
|
return ((now.tv_nsec - start->tv_nsec) +
|
||||||
NSEC_PER_SEC*(now.tv_sec - start->tv_sec));
|
(uint64_t)NSEC_PER_SEC*(now.tv_sec - start->tv_sec));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool __igt_fixture(void)
|
bool __igt_fixture(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user