Quote Originally Posted by Yorma
Now I think for some reason something makes the program slow down, and for that the clock is updated more infrequent. There may be some loop that i cant notice that continues to eat up the resources more and more after each update:

Qt Code:
  1. void test::upd()
  2. {
  3. QTimer *timer = new QTimer();
  4. connect(timer,SIGNAL(timeout()),this,SLOT(upd()));
  5. timer->start(1000);
  6. // ...
  7. }
To copy to clipboard, switch view to plain text mode 
Every time you invoke test::upd() you create a new timer, so after first second your will have 2 timers, after second one --- 4, then 8, 16, 32, ..., and after a minute you will have about 10^19 timers.

Create that timer only once.