Adds debug functions for stylus latency tracking
Using the hidden configuration "trackTabletEventLatency", Krita can now
output some stats on how long a stylus event remains in the event queue
before it is getting processed by Krita.
Differential Revision: https://phabricator.kde.org/D8201