Menu
About me Kontakt

Almost every clock in the world is wrong. The clock on your phone, the clock on your laptop, and even the clock on that old Nintendo DS, which you keep in the drawer, is inaccurate. What’s stranger is that all these clocks are bizarrely close to the actual time. The clock on your computer might only be a few dozen milliseconds off from the most precise atomic clocks in the world. This level of granular time synchronization is necessary for numerous critical systems to function. Without it, modern power grids could collapse, financial markets would disintegrate, and eBay bidding would become unfair. For many of us, the key element that keeps everything working is an invisible internet system created 40 years ago by one man in Delaware, which still exists thanks to the efforts of some very nice nerds.

It’s worth noting that your computer can keep time without the internet, even when powered off or unplugged. It possesses a small clock on the motherboard powered by a tiny battery, which can keep its internal clock running for about 5 to 20 years. However, in the realm of accurate clocks, this isn’t a great clock. It drifts a few seconds each day and isn’t up-to-date with the latest time news, such as whether the International Earth Rotation and Reference System Service has decided that this year’s December 31st will be 86,400 seconds or 86,401 seconds. Hence, computers need to occasionally pull time from elsewhere—a clock that is more “fit.”

To achieve time synchronization with nearly 100% accuracy, the Network Time Protocol (NTP) is utilized, which is one of the oldest sets of rules governing how the internet works. Interestingly, there are only 19 real sources for what time is it on the internet. This necessitates the establishment of a clock hierarchy through NTP. The top layer of the NTP hierarchy, Stratum Zero, comprises specific clocks recognized as the most accurate globally and having the final say on what the time on Earth actually is. Currently, the internet is connected to 19 Stratum Zero clocks located in Germany, Switzerland, France, the UK, Japan, Hawaii, Ontario, Colorado, Maryland, and space.

Not all these time sources work the same way. Most are state-run time-signal radio stations, like the one in Fort Collins, Colorado, which is used to calibrate almost all radio-controlled clocks in North America. It broadcasts a constant time signal in precise 60-second blocks that denote the start of each minute. Stratum Zero also includes a few satellite systems like GPS and Galileo, which have atomic clocks and can contribute fresh data when needed. Assuming you’re watching this video in the United States, the clock your computer is synced to is likely within a small one-story building in Northern Colorado.

The flow of time involves interaction between several servers. Each Stratum Zero clock connects directly to a Stratum One server. The number of these servers is limited, and they are as close to being perfectly accurate as a computer can be without being the clock itself. Stratum Two servers are computers that get their time directly from Stratum One servers. Generally, Stratum Two servers are the most accessible to the public. Time servers like time.windows.com are usually Stratum Two. Thus, unless you’ve done something unusual, the computer you’re watching this video on is probably at Stratum Three, and there’s nothing to be ashamed of—its time is likely only a few milliseconds off from that atomic clock in Colorado. This entire complex reality is possible thanks to the clever hierarchical system that manages time and synchronization. At the time of writing this article, the video on the Half as Interesting channel has 889124 views and 32022 likes, which highlights the viewer engagement with the topic of time synchronization.

Toggle timeline summary

  • 00:00 Almost every clock in the world is inaccurate.
  • 00:14 Your computer's time is closely aligned with atomic clocks.
  • 00:31 Critical systems rely on precise time synchronization.
  • 00:42 An invisible internet system maintains time accuracy.
  • 01:02 Your computer has an independent clock powered by a battery.
  • 01:37 Computers need to sync time from accurate sources.
  • 01:48 The Network Time Protocol is crucial for time synchronization.
  • 02:29 Stratum Zero clocks are the most accurate in the world.
  • 02:48 There are 19 Stratum Zero clocks globally, all government-operated.
  • 03:22 State-run time-signal radio stations calibrate clocks.
  • 03:45 Satellite systems also contribute to the timekeeping hierarchy.
  • 04:00 Your computer likely syncs to a time source in Northern Colorado.
  • 04:21 Stratum One servers connect to Stratum Zero clocks.
  • 04:32 Stratum Two servers depend on Stratum One for accurate time.
  • 05:04 Each clock checks against its parent clock periodically.
  • 05:38 Computers use timestamps to calculate accurate time.
  • 06:28 The time displayed on your screen results from complex infrastructure.
  • 07:05 Intro to Trade Coffee as a sponsor offering better coffee options.
  • 07:24 Personal experiences with Trade Coffee improving coffee enjoyment.
  • 07:47 Promotion of Trade Coffee for a convenient coffee experience.

Transcription

Almost every clock in the world is wrong. The clock on your phone is wrong, the clock on your laptop is wrong, the clock on that old Nintendo DS in your closet that somehow still has battery is wrong, but what's weirder is that they're all really bizarrely close to being right. If you look at the time on your computer right now, that time is probably only a few dozen milliseconds away from the most precise and advanced atomic clocks in the world, and there's a good reason for that. Without this level of granular time synchronization, any number of hugely important systems would fall apart. We wouldn't be able to operate modern power grids, financial markets would disintegrate, and eBay bidding would get really unfair. And like a lot of modern critical infrastructure, the only thing keeping this all together is an invisible internet system that you probably didn't even know existed, which was created 40 years ago by one guy in Delaware, and only still exists because of a bunch of very nice nerds who have decided to let society keep functioning. Just an aside, it's worth pointing out that your computer can keep the time without the internet, and it can even do that when off, unplugged, or full of bees. Basically, there's a small clock somewhere on your motherboard that's powered independently by a little battery that looks like this, and it has enough juice to keep your computer's internal clock running on its own for somewhere between 5 and 20 years. But in the world of big buff clocks, this is not a particularly great clock. It'll naturally drift by a few seconds each day, and it's not up to date on the latest time news, like whether or not the International Earth Rotation and Reference System Service has decided that this year's December 31st will be 86,400 seconds or 86,401 seconds. So all that is to say, your computer needs to, at least sometimes, get its time from somewhere else—a clock that actually hits the gym. But getting the time from here to here with nearly 100% accuracy is easier said than done, so here's how it's done. It's called the Network Time Protocol, and it's one of the oldest sets of rules governing how the internet actually works. You see, the internet only has 19 real sources for what time it is—I know that sounds weird, more on that later—so it needs a system to get the time from one of those clocks to every other device on the internet. And you can't just have millions of computers all hooked up directly to those clocks, so instead, the internet is built on top of a secret clock hierarchy. Some computers have more accurate time than others—it's fresher, closer to the teat of a real clock. But if you want to move your computer up in clock society, you'll need to understand how this hierarchy works. The top layer of the Network Time Protocol, which is called Stratum Zero, are the actual clocks themselves. These are, generally, some of the most accurate clocks in the world, and they're the final authority for what the time on Earth actually is at any given moment. As of right now, the internet is hooked up to 19 of the Stratum Zero clocks located in Germany, Switzerland, France, the UK, Japan, Hawaii, Ontario, Colorado, Maryland, and space. And as far as I can tell, every single one of these time sources is owned or operated by some kind of government agency—usually one of those really obscure government agencies that's just, like, three guys in a room who care a frightening amount about calibrating clocks and absolutely nothing else. Their websites look like this, their logos were designed in Microsoft Word 25 years ago, and most of them seem to spend their free time organizing and attending what I would describe as a shocking number of different timekeeping and measurement conventions. Now, not all of these time sources work the same way—most of them are state-run time-signal radio stations, like this one in Fort Collins, Colorado. The signal broadcast by this station is used to calibrate pretty much any radio-controlled clock in North America. It operates its own set of cesium-fountain atomic clocks on-site—don't worry about what that actually means, just know that they're really good clocks—and broadcasts a constant time signal in perfect 60-second blocks that precisely denote the start of each minute. Stations like this cover most of the Earth, but Stratum Zero also includes a few satellite systems like GPS and Galileo which have their own atomic clocks, and can also throw some fresh numbers into the system when necessary. So okay, assuming you're watching this video in the United States—which you are, because that's the only country—the clock your computer is actually synced to is almost certainly located in this small, one-story building in Northern Colorado. But how does the time get from there to you? Well, the short answer is, time goes through wire. The slightly less short answer is that the data needs to travel through a few different servers before it reaches you. This is where the other strata come in. Every Stratum Zero clock is connected directly to a Stratum One server. There are a fairly limited number of these, and they're as close to being perfectly accurate as a computer can be without literally being the clock itself. Stratum Two servers, then, are the computers that get their time directly from Stratum One servers. Since you can't really make your own Stratum One server without direct access to an atomic clock, Stratum Two servers are generally the most accurate computers available to the general public. Commercial time servers—like, say, time.windows.com, which is the default time source for Windows computers—are usually in Stratum Two. And that means that, unless you've gone and done something weird, the computer you're watching this video on is probably in Stratum Three, and that's nothing to be ashamed about. It's probably only a few milliseconds off from that atomic clock all the way over in Colorado, which is only possible because the time travels down each one of these levels in a really clever way. Basically, each clock at each level is counting time on its own, and it only checks its daddy level every so often to see if it's wrong, so it can adjust to the right time and keep counting from there. But when a computer requests the time from the computer above it, there's a bit of a physics problem. It takes time for the question to get from one computer to another, time for the computer to process the question, and time for the answer to go back, and by then, who really knows what time it is. So, instead of just saying, hey daddy computer, what time is it, and rolling with whatever answer it sends back, there's a way to get a much more accurate answer. First, the computer asking the question will record what time it thinks it is when it first asks the question—that's T0. It'll send T0 to the computer above it, who will record the time that it actually is when it receives the question—that's T1. Then it'll record the time again when it sends the answer—that's T2, and finally the first computer will record the time when it receives the answer—that's T3. Using these four timestamps, you can figure out what the difference is between the two computers' clocks—that's just T1 minus T0—but you can also figure out how much time it takes for the signal to travel between both computers using this formula here, which I won't really explain, but I promise it makes sense if you look at it for long enough, and that allows you to adjust the first clock without worrying about the latency of the internet and physics and stuff. So there you go! The tiny number in the corner of your screen is an incredible feat of infrastructure, physics, and math. And frankly, this video was an equally incredible feat, because my writer Ben went to college for something called Literary Arts, and now he's using the last section of the script to beg me to not make him write another video involving numbers, and blah blah blah, it just keeps going on like that. Well, I guess that's the end of the video, then. See you next time! But actually, before you go, I made Ben run the numbers on one last piece of convoluted math, and his results were definitive. You're paying too much for coffee. I know it, you know it, we all know it. Everyone pays too much for coffee, because honestly, grocery store coffee is usually pretty gross, and the one other option is shelling out like $8 for a latte every morning. But now you've got a third option, thanks to our sponsor, Trade Coffee. Trade partners with over 55 of the best indie roasters in the country to deliver fresh, delicious coffee beans right to your door, and better yet, they work with you to match you with the perfect roast that fits your palate. Before I started using Trade, I didn't really know anything about coffee. I'd just take whatever was available and dump a bunch of sugar in it. But now, I can actually enjoy the coffee itself, and I actively look forward to trying new roasts that Trade matches me with. Lately, I've been enjoying Oren's Special Blend, which Trade determined works well over ice and is roasted to take cream, both of which I enjoy because I drink my coffee like a tiny little baby. So, if you want to skip the coffee shop, upgrade your morning routine with Trade Coffee. Visit drinktrade.com to sign up and save $15 on select plans, and better yet, you'll get your first bag of coffee for free.