return when;
}
+unsigned long timing_last_clock(void)
+{
+ /*
+ * Return the last value we stored in 'now'. In particular,
+ * calling this just after schedule_timer returns the value of
+ * 'now' that was used to decide when the timer you just set would
+ * go off.
+ */
+ return now;
+}
+
/*
* Call to run any timers whose time has reached the present.
* Returns the time (in ticks) expected until the next timer after
*/
delpos234(timers, 0);
sfree(first);
- } else if (now - first->when_set - 10 >
- first->now - first->when_set - 10) {
+ } else if (now - (first->when_set - 10) >
+ first->now - (first->when_set - 10)) {
/*
* This timer is active and has reached its running
* time. Run it.