T-n-T: Clock
The problem
It is required to create a time counter (Clock) with the maximum possible accuracy.
The solution
Using the above algorithm, built on the use of the system register of the controller program cycle duration, it is possible to organize time counting with high accuracy and a maximum deviation of less than 1 minute in 1 year.
Besides, based on this algorithm, it is possible to create a calendar.
TODO:TRANSLATE