Code example for Chronometer

Methods: start

0
        button.setOnClickListener(mClearFormatListener);
    } 
 
    View.OnClickListener mStartListener = new OnClickListener() {
        public void onClick(View v) { 
            mChronometer.start(); 
        } 
    }; 
 
    View.OnClickListener mStopListener = new OnClickListener() {
        public void onClick(View v) { 
            mChronometer.stop(); 
        } 
    }; 
 
    View.OnClickListener mResetListener = new OnClickListener() {
        public void onClick(View v) { 
            mChronometer.setBase(SystemClock.elapsedRealtime()); 
        } 
    };