Clock Drift Lab

When Clocks Drift Apart.

Every clock starts together, then runs on its own slightly imperfect tick rate. Watch the synchronized pulse turn into drift.

Elapsed 0.0s Max drift 0ms

Aligned at first

The demo starts with every clock showing the same moment, so all the ticks are in step and the grid looks unified.

Drift appears

Each clock has a slightly different rate, so the smallest timing errors build up and the once-coordinated pattern begins to spread apart.

Correction pulse

When the clocks are resynchronized, their local time gets pulled back toward the reference and the pattern briefly snaps back together.

Clock Basics

A clock is any device or process that counts time by moving from one tick to the next. A wall clock, a phone, a computer, and a satellite all do the same basic job: they keep a count and try to advance it at the right pace.

Reference clock

A reference clock is the time we compare other clocks against. It might be an atomic clock, a phone network, a server, or simply the timer in this page. The boxes here are independent clocks that try to follow the reference, but each one has its own imperfections.

Clock rate

Clock rate is how quickly a clock advances. A perfect clock advances one second for every real second. A fast clock advances a little more than that; a slow clock advances a little less. This is why two watches can show slightly different times after a few days.

Drift

Drift is the long-term error caused by a clock running fast or slow. A tiny rate difference can look harmless at first, but it accumulates. That is why clocks that start synchronized eventually spread apart.

Skew

Skew is the difference between two clocks at a specific moment. If one clock is 120ms ahead of the reference right now, its skew is 120ms. Drift is the tendency; skew is the current gap.

Jitter

Jitter is short-term timing noise. It can come from the clock itself, from hardware conditions, or from the world around it: temperature changes, electrical noise, vibration, software delays, or network delays. In the demo, jitter makes ticks wobble instead of drifting smoothly.

Synchronization

Synchronization corrects clocks against a reference. Your phone does this automatically with network time. Computers often use protocols like NTP. The sync button here is a simplified correction pulse: it pulls every clock back toward the reference, then the clocks begin drifting again.

Why it matters

Timekeeping matters anywhere coordination matters: train schedules, banking records, video calls, scientific instruments, GPS, factory automation, and computers talking to each other. Timestamps are useful, but they are not absolute truth unless the clocks behind them are kept close enough together.

How accurate are different clocks?

Mechanical watches are beautiful little machines, but they can drift by a few seconds per day, and cheaper ones can drift more. Quartz watches are much steadier because a vibrating quartz crystal gives a reliable rhythm; many are off by only a few seconds per month. Phones and computers usually keep better time than their internal clocks alone would because they regularly synchronize with network time.

GPS-based clocks are much more precise because GPS satellites carry atomic clocks and broadcast timing signals. A GPS-disciplined clock can stay extremely close to global time when it has a good signal. Atomic clocks are the reference tier: instead of relying on gears or quartz, they count very stable atomic transitions. The best atomic clocks can stay accurate to tiny fractions of a second over millions or even billions of years.

The pattern is the same at every scale: better clocks drift less, but no practical clock is magic. If you care about shared time, you still need a reference and a way to resynchronize.

What even is time?

In everyday language, time is how we describe change and order: before, after, duration, waiting, rhythm. Measurement needs something more precise, so the SI defines the unit of time, the second, using a stable property of caesium-133 atoms.

The SI second is defined by fixing the caesium-133 hyperfine transition frequency at exactly 9,192,631,770 hertz. Put another way, one second is the duration of 9,192,631,770 periods of that radiation from an unperturbed caesium-133 atom.

The philosophy of time

Time is one of the deepest mysteries in physics and philosophy. We experience it as a flow, a river carrying us from past to future, yet physics describes it as just another dimension: no more special than height or width. In relativity, time bends and stretches depending on speed and gravity. An observer falling into a black hole experiences time differently than someone watching from far away.

The real puzzle is why time feels directional when the laws of physics are often reversible. Why do we remember the past but not the future? Why does entropy increase? Why does time seem to flow at all? No one fully knows. But perhaps the answer lies partly in clocks: time is not something we discover in nature, but something we measure using stable references.

We build clocks, we synchronize them, we agree on a rhythm. The universe may not care about seconds, but we do. We care because we need to coordinate, to remember, to plan. Time, in that sense is less a feature of the universe and more a tool we use to make sense of it.

References

  1. A Brief History of Atomic Time | NIST
  2. FHH | The Journey of Time Measurement
  3. Atomic clock - Wikipedia
  4. Quartz clock - Wikipedia
  5. System time - Wikipedia