25 ms·
Do you need to configure the Hz? Otherwise it'll run faster in the USA va Europe.
by WirelessGigabit 4y ago
Do you need to configure the Hz? Otherwise it'll run faster in the USA va Europe.
- layer8 4y agoSee here: http://codebase64.org/doku.php?id=base:initialize_tod_clock_on_all_platforms http://codebase64.org/doku.php?id=base:initialize_tod_clock_... I don’t understand it completely, so would appreciate an explanation.
- classichasclass 4y ago(author) Yes, it accounts for 50Hz vs 60Hz, see https://github.com/classilla/totp-c64/blob/main/totp.xa#L129 https://github.com/classilla/totp-c64/blob/main/totp.xa#L129 . Basically it uses the other CIA as a cycle counter to see how many cycles elapse between TOD ticks, and then adjusts accordingly (from https://codebase64.org/doku.php?id=base:efficient_tod_initialisation https://codebase64.org/doku.php?id=base:efficient_tod_initia... ).