How does a program know actually what a second is?

623 views

So if a program needs to wait 10 seconds for something, how it is actually calculating it if the processors speed continously changes? (And i’m talking about offline programs that does not use NTP)

In: 361

20 Answers

Anonymous 0 Comments

There is a type of rock which when hit with electricity begins to vibrate. And it always vibrates with the same speed. This tiny rock (crystal) is part of every computer.

Programmers pre-set how many times is this crystal supposed to vibrate in a second. So programs can just count the vibrations and know when a second has passed.

You are viewing 1 out of 20 answers, click here to view all answers.