How does a program know actually what a second is?

819 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

In almost every electronic device there is something called RTC (real time clock)

It uses crystal, that oscilates at the same frequency… This is the “hardware” way

It usually looks like shiny metal component size between rice and tic-tac… Look at your motherboard, or Arduino board and you will see it

Programs don’t worry about it, operating system and bios takes care of this…

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