This code is meant to be a countdown timer that should trigger a beep every full second.
I've tried a "timer" and a "do while" loop, but the performance is not so good in both.
The beep has a delay of up to 2 hundredths of a second.
Is there a way to reduce this delay?
Well, with this trick I have now improved my code.
All you have to do is update the label "lblClock" every 100ms and the world looks completely different.
The timer now gives just as good results as the threading library.