libweston: Use struct timespec for compositor time
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Thu, 16 Nov 2017 16:21:01 +0000 (18:21 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 27 Nov 2017 09:42:07 +0000 (11:42 +0200)
commit409b01fd6dad591b42e4f43c37b4e8c833422968
treec19994c1984197ec6f001b453faeffcde5069ffc
parent7d2abcf6c8e7bf0cb137febfa43936ba9877c465
libweston: Use struct timespec for compositor time

Change weston_compositor_get_time to return the current compositor time
as a struct timespec. Also, use clock_gettime (with CLOCK_REALTIME) to
get the time, since it's equivalent to the currently used gettimeofday
call, but returns the data directly in a struct timespec.

This commit is part of a larger effort to transition the Weston codebase
to struct timespec.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
compositor/text-backend.c
desktop-shell/shell.c
desktop-shell/shell.h
libweston/compositor-rdp.c
libweston/compositor-x11.c
libweston/compositor.c
libweston/compositor.h