nouveau: get timestamp from os_time_get_nano instead of os_time_get

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19249>
This commit is contained in:
Yusuf Khan
2022-10-19 04:14:15 -05:00
committed by Marge Bot
parent 1d41dd42df
commit 851c6598bd
+1 -1
View File
@@ -59,7 +59,7 @@ nouveau_screen_get_device_vendor(struct pipe_screen *pscreen)
static uint64_t
nouveau_screen_get_timestamp(struct pipe_screen *pscreen)
{
int64_t cpu_time = os_time_get() * 1000;
int64_t cpu_time = os_time_get_nano();
/* getparam of PTIMER_TIME takes about x10 as long (several usecs) */