Lines Matching defs:ticks
198 long ticks;
205 * ticks. Otherwise just compute number of hz in time, rounding
209 * Maximum value for any timeout in 10ms ticks is 250 days.
213 ticks = ((tv->tv_sec - now.tv_sec) * 1000 +
217 ticks = sec * hz;
219 ticks = 0x7fffffff;
221 return (ticks);
249 * Compute number of ticks in the specified amount of time.
254 unsigned long ticks;
261 * ticks, rounding up and adding 1 to allow for the current tick
265 * Otherwise, if the number of ticks in the whole seconds part of
267 * ticks separately and add, using similar rounding methods and
275 * 10ms ticks is 248 days.
292 ticks = 1;
294 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1))
297 ticks = sec * hz
300 ticks = LONG_MAX;
301 if (ticks > INT_MAX)
302 ticks = INT_MAX;
303 return ((int)ticks);
335 int ticks;
349 ticks = ((tv->tv_sec - st.tv_sec) * 1000 +
352 if (ticks)
353 addupc_task(p, pc, ticks);