2 ms·
Another good practice is to initialize the time counters to something close to the overflow point, rather than zero. This encourages overflow bugs to show up a
by CamperBob2 12y ago
Another good practice is to initialize the time counters to something close to the overflow point, rather than zero. This encourages overflow bugs to show up at timescales where they will be noticed during testing, rather than after 248 days of service.
This is a scary-ass bug in a codebase that was supposed to be authored to strict professional standards.
- cpeterso 12y agoThe Linux kernel does that. The 'jiffies' counter's initial value rolls over 5 minutes after boot: http://lxr.free-electrons.com/source/include/linux/jiffies.h#L163 http://lxr.free-electrons.com/source/include/linux/jiffies.h...