function cb (h, evt)
  tmp = 0;
  tic ();
  while (tmp < 5)
    if (toc > 5)
      tic ();
      tmp = tmp + 1;
      disp ('processing queued callbacks')
      drawnow ()
    end
  end
end
