mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +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:
parent
6862b33d50
commit
cf07aa2fc6
@ -412,7 +412,7 @@ uint64_t igt_nsec_elapsed(struct timespec *start)
|
||||
}
|
||||
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user