diff --git a/tools/ei-demo-client.c b/tools/ei-demo-client.c index 2b1e9ac..d7b8738 100644 --- a/tools/ei-demo-client.c +++ b/tools/ei-demo-client.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #if HAVE_LIBXKBCOMMON @@ -453,6 +454,7 @@ int main(int argc, char **argv) uint64_t now = ei_now(ei); uint64_t interval = ms2us(10); /* pretend events are 10ms apart */ + colorprint("now: %" PRIu64 "\n", now); if (have_ptr) { colorprint("sending motion event\n"); ei_device_pointer_motion(ptr, -1, 1); diff --git a/tools/eis-demo-server.c b/tools/eis-demo-server.c index a5e337a..7e6af41 100644 --- a/tools/eis-demo-server.c +++ b/tools/eis-demo-server.c @@ -48,6 +48,7 @@ #include #include #include +#include #if HAVE_LIBXKBCOMMON #include @@ -476,7 +477,10 @@ eis_demo_server_printf_handle_event(struct eis_demo_server *server, } break; case EIS_EVENT_FRAME: - /* nothing to do, we're not fancy enough to accumulate events properly */ + { + colorprint("frame timestamp: %" PRIu64 "\n", + eis_event_get_time(e)); + } break; default: abort(); @@ -620,6 +624,7 @@ int main(int argc, char **argv) struct eis_demo_client *democlient; uint64_t now = eis_now(eis); + colorprint("now: %" PRIu64 "\n", now); const int interval = ms2us(12); /* events are 12ms apart */ list_for_each(democlient, &server.clients, link) {