@Override
        public void run() {
            while(true) {
                Thread.yield();
                if (tick) {
                    try {
                        Thread.sleep(delay);
                        if (tick) endTick();
                        tick=false;
                    } catch (InterruptedException ex) {
                        Logger.getLogger(ProcessData.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            }
        }