ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.288 by root, Sat Apr 25 14:12:48 2009 UTC vs.
Revision 1.289 by root, Sat Jun 6 11:13:16 2009 UTC

1948/* fetch new monotonic and realtime times from the kernel */ 1948/* fetch new monotonic and realtime times from the kernel */
1949/* also detetc if there was a timejump, and act accordingly */ 1949/* also detetc if there was a timejump, and act accordingly */
1950inline_speed void 1950inline_speed void
1951time_update (EV_P_ ev_tstamp max_block) 1951time_update (EV_P_ ev_tstamp max_block)
1952{ 1952{
1953 int i;
1954
1955#if EV_USE_MONOTONIC 1953#if EV_USE_MONOTONIC
1956 if (expect_true (have_monotonic)) 1954 if (expect_true (have_monotonic))
1957 { 1955 {
1956 int i;
1958 ev_tstamp odiff = rtmn_diff; 1957 ev_tstamp odiff = rtmn_diff;
1959 1958
1960 mn_now = get_clock (); 1959 mn_now = get_clock ();
1961 1960
1962 /* only fetch the realtime clock every 0.5*MIN_TIMEJUMP seconds */ 1961 /* only fetch the realtime clock every 0.5*MIN_TIMEJUMP seconds */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines