Add --monotonic option
Setting this option configures the kernel to timestamp input events using
CLOCK_MONOTONIC instead of CLOCK_REALTIME.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:26493
TEST=mtplot => input events use wall clock timestamps
mtplot --monotonic => input events use monotonic timestamps, iff
supported by the kernel.
mtplot --monotonic => if kernel dosen't support monotonic timestamps,
a warning message is printed, and realtime timestamps are used.
Change-Id: I7a4e02989b733b8f569672cb4d0589b972777b14
1 file changed