News for hackers. Stuff that matters.
Re:The Colour Clock by xenonite on Friday February 25, 2011 @08:03PM (#2264476)
Rather useful in this case could be an adaptive method. First, you update every 50ms until you circled in the moment when the second toggles. Then you can do sleep(1) again and save resources.

Alternatively, use time() to only sleep the remaining timespan until the next second.

There are no comments on this comment yet.