Nicolas George wrote: [...]
And think of a chess-game clock: for quick games, having 2s left or having 1.1s left may make the whole difference (well, it may be a good idea to switch to 1/10s display at the end of the game, but here is the idea). So timeouts that try to catch up are not an absolute necessity, but they are quite useful in some programs.
Using an event based mainloop like GTK+; which as you noted, simply isn't designed for perfect accuracy; there will obviously always be a divergence between the "remaining seconds" and the value displayed in the "remaining seconds" GtkLabel; that being said, is there anything wrong with running a timeout function about 10 times every second and updating the "remaining seconds" label only when needed ? Cheers, -Tristan _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list