Lines Matching full:ticks
210 int ticks; in parse_timeout_to_pow2ns() local
224 ticks = tvtohz(&tv); in parse_timeout_to_pow2ns()
228 "(in: %s sec -> out: %jd sec %ld ns -> %d ticks)\n", in parse_timeout_to_pow2ns()
231 myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); in parse_timeout_to_pow2ns()
233 if (ticks <= 0) { in parse_timeout_to_pow2ns()
580 * Convert a timeval to a number of ticks.
586 register unsigned long ticks; in tvtohz() local
605 * ticks, rounding up and adding 1 to allow for the current tick in tvtohz()
609 * Otherwise, if the number of ticks in the whole seconds part of in tvtohz()
611 * ticks separately and add, using similar rounding methods and in tvtohz()
619 * 10ms ticks is 248 days. in tvtohz()
636 ticks = 1; in tvtohz()
638 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1)) in tvtohz()
641 ticks = sec * hz in tvtohz()
644 ticks = LONG_MAX; in tvtohz()
645 if (ticks > INT_MAX) in tvtohz()
646 ticks = INT_MAX; in tvtohz()
647 return ((int)ticks); in tvtohz()