stefan k has asked for the wisdom of the Perl Monks concerning the following question:
Right now I got two questions burning:
But this uses up all the CPU time available. An additionalwhile (1) { while (Gtk->events_pending) { Gtk->main_iteration; } $time = strftime("%H:%M:%S",localtime()); $time_label->set($time); }
within the while()-loop makes the whole programm respond very slowly.sleep(1)
So, since I need not only to update the time label but also
have to check a file for a change since my last visit (and maybe I'll have
to add more actions later)
I ask you, my Fellow Monks:
What else can I do??
| Regards | Stefan K |
Edited 2001-04-09 by mirod: added </ol> tag
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Happy Now: The Solution
by stefan k (Curate) on Apr 09, 2001 at 19:47 UTC | |
|
grmlblbl
by stefan k (Curate) on Apr 09, 2001 at 18:24 UTC |