12. Clock-Adjust Process
The clock-adjust process runs at one-second intervals to apply frequency correction and a fixed percentage of residual offset theta_r. The TC parameter scales the time constant to match the poll interval. Dispersion (EPSILON) increases by PHI each second.
Timer Interrupt Mechanism
Seconds counter c.t: Starts at zero when service begins, increments once per second.
Interrupt handling:
- Timer interrupt occurs each second
- Calls
clock_adjust()routine - Applies time and frequency adjustments
- Scans associations to check if seconds counter equals or exceeds p.next
- If so, calls poll process to send packet and compute next p.next value
Implementation example in Appendix A.5.6.1 clock_adjust() routine.