diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-05-17 22:44:42 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-13 15:33:28 +0300 |
commit | 4e1492ba1729d8e56f12db706f4bc08acbbf31e8 (patch) | |
tree | 8389a0e038de3416e73857eefdf49f47a49186c4 /lib/igt_gt.h | |
parent | a742ebd9b4908c7eaca8a3d54f86b3d14583b5b5 (diff) |
tests/kms_flip: Print timevals as float
Time intervals as produced by timersub() are normalized to have
the tv_usec in the range 0-999999. That leads to very confusing
looking debug output for negative interval. Eg. an interval
of -0.1 seconds would be represented as tv_sec=-1, tv_usec=900000.
Let's just convert the thing to a float seconds value and print
that so that we'll get less confusing debug output.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_gt.h')
0 files changed, 0 insertions, 0 deletions