Code example for Chronometer

Methods: stop

0
        } 
    }; 
 
    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()); 
        } 
    }; 
 
    View.OnClickListener mSetFormatListener = new OnClickListener() {
        public void onClick(View v) { 
            mChronometer.setFormat("Formatted time (%s)"); 
        } 
    };