[<<][math][>>][..]
Tue Aug 14 09:45:18 EDT 2012

Phases of 60 seconds

What's the simplest way to divide 60 seconds into a number of phases
without performing division, i.e. only shifts?

To do it exactly it's only possible to go up to 4/minute, by masking
out everything except the 2 lowest bits, and comparing these to 0.

Next up is 8 which will do: 0, 8, 16, 24, 32, 40, 48, 56, 60, ... so
the last interval is 4 seconds instead of 8.  Might not be so
desirable.




[Reply][About]
[<<][math][>>][..]