public void run() {
			while(isRefreshing) {
				if(!OptionsManager.getInstance().isRefresh()) {
					isRefreshing = false;
					refreshView();
				}
				long timePassed = (new Date()).getTime() - lastRefresh.getTime();
				fps = (timePassed==0)?0:(1000/timePassed);
				refreshView();
				lastRefresh = new Date();
				try {
					Thread.sleep(OptionsManager.getInstance().getRefreshDelay());
				} catch(InterruptedException ex) {
					ex.printStackTrace();
				}
			}
		}