Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how does the function time() tell the current time and even when the computer has been powered off earlier?

Tags:

hardware

clock

how we can work on timer deals with milliseconds (0.001) how we could divide second as we want ?? how we could we deal with the second itself ???

like image 402
Sherif Avatar asked Jun 10 '09 03:06

Sherif


1 Answers

http://computer.howstuffworks.com/question319.htm

In your computer (as well as other gadgets), the battery powers a chip called the Real Time Clock (RTC) chip. The RTC is essentially a quartz watch that runs all the time, whether or not the computer has power. The battery powers this clock. When the computer boots up, part of the process is to query the RTC to get the correct time and date. A little quartz clock like this might run for five to seven years off of a small battery. Then it is time to replace the battery.

like image 61
nonopolarity Avatar answered Nov 13 '22 23:11

nonopolarity