3 ms·
I see the clock code accounts for leap years - but what about leap seconds? Of course, most TOTP systems allow for a little clock drift, so being out by a few
by edent 4y ago
I see the clock code accounts for leap years - but what about leap seconds?
Of course, most TOTP systems allow for a little clock drift, so being out by a few seconds should be fine.
What a delightful hack. It makes me want to drag my BBC Micro out of the loft to try something similar!
- classichasclass 4y ago(author) Sadly, no leap second support currently. A future adjustment ;)
- userbinator 4y ago30s is the default interval for TOTP, and most seem to allow +/- several intervals, so around a minute or two of drift is still OK.