From 3dda80fcf62baa106f227392d45ea6853ef7d9e9 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 28 Oct 2021 11:12:16 +0300 Subject: [PATCH] intel/dev: printout timestamp period Signed-off-by: Lionel Landwerlin Reviewed-by: Antonio Caggiano Part-of: --- src/intel/dev/intel_dev_info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/dev/intel_dev_info.c b/src/intel/dev/intel_dev_info.c index 2c067319b7a..1d8cbefd262 100644 --- a/src/intel/dev/intel_dev_info.c +++ b/src/intel/dev/intel_dev_info.c @@ -110,7 +110,8 @@ main(int argc, char *argv[]) fprintf(stdout, " max GS threads: %u\n", devinfo.max_gs_threads); fprintf(stdout, " max WM threads: %u\n", devinfo.max_wm_threads); fprintf(stdout, " max CS threads: %u\n", devinfo.max_cs_threads); - fprintf(stdout, " timestamp frequency: %" PRIu64 "\n", devinfo.timestamp_frequency); + fprintf(stdout, " timestamp frequency: %" PRIu64 " / %.4f ns\n", + devinfo.timestamp_frequency, 1000000000.0 / devinfo.timestamp_frequency); } return EXIT_SUCCESS;