Make ecore_time_get and friends use monotonic clock
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Sep 2010 22:35:35 +0000 (22:35 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Sep 2010 22:35:35 +0000 (22:35 +0000)
commit51b70d8da9a92baf51ed4a5e5131385c9452fc32
tree15d4f85d39e55659393ac34739cf405f8f3e1514
parent1864248dd122945ed17c273a5d42fe4d02cb4082
Make ecore_time_get and friends use monotonic clock
Instead of relying on unix time, use a monotonic clock provided by
clock_gettime(). If a monotonic clock is not available, it will fallback
to CLOCK_REALTIME or unix time if neither is available.

The impact is that now it only makes sense to call ecore_time_get() or
ecore_time_loop_get() if the value retrieved is intended to be used as
relative to previous/posterior measurements. If an absolute value is
needed, the right function to call now is ecore_time_unix_get() which
will give the number of seconds since Jan 1st, 1970, 12:00AM.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52824 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
configure.ac
src/lib/ecore/Ecore.h
src/lib/ecore/Makefile.am
src/lib/ecore/ecore.c
src/lib/ecore/ecore_private.h
src/lib/ecore/ecore_time.c