Lines Matching full:resolution
94 * The resadj member is used to apply a "resolution adjustment" equal to half
95 * the clock's resolution, which is useful mainly on clocks with a whole-second
96 * resolution. Because the clock truncates the fractional part, adding half the
97 * resolution performs 4/5 rounding. The same adjustment is applied to the
104 int resolution; member
120 * Registered clocks are kept in a list which is sorted by resolution; the more
211 clock_register_flags(device_t clockdev, long resolution, int flags) in clock_register_flags() argument
217 newrtc->resolution = (int)resolution; in clock_register_flags()
220 newrtc->resadj.tv_sec = newrtc->resolution / 2 / 1000000; in clock_register_flags()
221 newrtc->resadj.tv_nsec = newrtc->resolution / 2 % 1000000 * 1000; in clock_register_flags()
230 if (rtc->resolution > newrtc->resolution) { in clock_register_flags()
242 "registered as a time-of-day clock, resolution %d.%6.6ds\n", in clock_register_flags()
243 newrtc->resolution / 1000000, newrtc->resolution % 1000000); in clock_register_flags()
323 * are queried in order of resolution until one provides the time. If no clock