diff options
author | root <root> | 2007-11-10 03:19:21 +0000 |
---|---|---|
committer | root <root> | 2007-11-10 03:19:21 +0000 |
commit | f2a9defa2bdaf750790aae6cea75cf23b945189e (patch) | |
tree | c645019c699da99d4dec0963ea9c85a8ef7540c3 | |
parent | 6724cd5b6ffe05187a5520b0cd3771c7dbe83896 (diff) |
optimise ev_now when \!MULTIPLICITY
-rw-r--r-- | ev.c | 2 | ||||
-rw-r--r-- | ev.h | 2 | ||||
-rw-r--r-- | ev_vars.h | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -223,6 +223,7 @@ typedef struct struct ev_loop { + ev_tstamp ev_rt_now; #define VAR(name,decl) decl; #include "ev_vars.h" #undef VAR @@ -234,6 +235,7 @@ typedef struct #else + ev_tstamp ev_rt_now; #define VAR(name,decl) static decl; #include "ev_vars.h" #undef VAR @@ -272,7 +272,7 @@ int ev_default_loop (int methods); /* returns true when successful */ static ev_tstamp ev_now () { - extern ev_rt_now; + extern ev_tstamp ev_rt_now; return ev_rt_now; } @@ -2,7 +2,6 @@ VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ -VARx(ev_tstamp, ev_rt_now) VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ VARx(int, method) |