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…
Latest Answers