Menu

Why everyone says not to trust clocks
πŸ“°

Why everyone says not to trust clocks

DEV Community: goΒ·Vatsal PatelΒ·2 days ago
#nfWASECg
#devtogo#devto#dev#time#clock
Long article (2152 words) β€” no AI summary yet.
Reading 0:00
15s threshold

You are reading a blog or a book or something on distributed systems, and you come across the line that you can't trust clocks. Usually it's a variation of clocks drift, don't order things by timestamps or don't trust the timestamps. So, you accept that as the truth, but have you ever wondered why you can't trust the clocks?

How the clock works

Every clock ever built is made out of two parts. Something that repeats and something that counts the repetitions. A pendulum, some gears, and these days, a rock.

Yes, the clock is just a stupid rock. Yes, humanity made clocks out of vibrating stupid rocks. Well, not the worst thing humanity has done, to be fair, but it's up there along with teaching sand to think.

The rock in question is a crystal of Quartz.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.