A clock inspired by a
youtube video about optimized, accurate javascript counters.
Once initialized, it doesn't skip seconds (a common problem when
using setInterval for clocks and counters) and doesn't update when
it doesn't need to (only once per second and not at all when the
tab isn't being used)