… | |
… | |
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 */ |
1950 | inline_speed void |
1950 | inline_speed void |
1951 | time_update (EV_P_ ev_tstamp max_block) |
1951 | time_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 */ |