mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 18:36:15 +00:00
tests/gem_wait_rendering_timeout: fix up the autotuner
duuh
This commit is contained in:
parent
95877ab9ce
commit
b711bfe54f
@ -47,7 +47,7 @@ static int64_t
|
|||||||
do_time_diff(struct timespec *end, struct timespec *start)
|
do_time_diff(struct timespec *end, struct timespec *start)
|
||||||
{
|
{
|
||||||
int64_t ret;
|
int64_t ret;
|
||||||
ret = (NSEC_PER_MSEC * difftime(end->tv_sec, start->tv_sec)) +
|
ret = (MSEC_PER_SEC * difftime(end->tv_sec, start->tv_sec)) +
|
||||||
((end->tv_nsec/NSEC_PER_MSEC) - (start->tv_nsec/NSEC_PER_MSEC));
|
((end->tv_nsec/NSEC_PER_MSEC) - (start->tv_nsec/NSEC_PER_MSEC));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user