aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-09-27 22:35:35 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-09-27 22:35:35 +0000
commitd17de811757c09c89b64631d442884bb14791c57 (patch)
tree25592ef8fb3277d58ffd9c428ab1ccd531db8765 /legacy/ecore/src/lib/ecore/ecore.c
parentDon't screw up script {} highlighting when there are several levels of {} (diff)
downloadefl-d17de811757c09c89b64631d442884bb14791c57.tar.gz
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. SVN revision: 52824
Diffstat (limited to 'legacy/ecore/src/lib/ecore/ecore.c')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore.c b/legacy/ecore/src/lib/ecore/ecore.c
index 5bf12bc10d..8f2a045f72 100644
--- a/legacy/ecore/src/lib/ecore/ecore.c
+++ b/legacy/ecore/src/lib/ecore/ecore.c
@@ -117,7 +117,7 @@ ecore_init(void)
_ecore_thread_init();
_ecore_glib_init();
_ecore_job_init();
- _ecore_loop_time = ecore_time_get();
+ _ecore_time_init();
#if HAVE_MALLINFO
if (getenv("ECORE_MEM_STAT"))