How does a program know actually what a second is?

849 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

It doesn’t. However, the program can ask the OS, but it doesn’t know that either. However, the OS has access to timers and clocks on the motherboard of the computer, so it can use those to figure out the time, and then cause a delay, or return the time, or do whatever the program needs to do.

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