public void run(){
        while(flag){
            second++;
            if(second==60){
                second= 0;
                minute++;
            }
            if(minute==60){
                minute= 0;
                hour++;
            }
            if(hour==24){
                hour= 0;
            }
            System.out.println(this);
            try{
                Thread.sleep(1000);
            }catch(InterruptedException ex){
                ex.printStackTrace();
            }
        }
    }