Here’s the optimized version. The prior was hopefully broken apart enough to be understood. This one is much tighter, though. ;)
long swatch_time() { return ((time(0) + 3600) % 86400 * 10 / 864); }Swatch time: Take Deux
Here’s the optimized version. The prior was hopefully broken apart enough to be understood. This one is much tighter, though. ;)
long swatch_time() { return ((time(0) + 3600) % 86400 * 10 / 864); }