tools: debug-events: expand timestamp prints to full millis
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 Nov 2019 22:39:55 +0000 (08:39 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 Nov 2019 22:43:48 +0000 (22:43 +0000)
Tens of millis is not quite enough in some cases.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-debug-events.c

index d4f5914f959294e892c5dbdc080cc6a31460c1c6..069ef3c36694e5a887628b425d9b8377f94c5f0d 100644 (file)
@@ -155,7 +155,7 @@ print_event_header(struct libinput_event *ev)
 static void
 print_event_time(uint32_t time)
 {
-       printq("%+6.2fs ", start_time ? (time - start_time) / 1000.0 : 0);
+       printq("%+6.3fs ", start_time ? (time - start_time) / 1000.0 : 0);
 }
 
 static inline void