Code example for Chronometer

Methods: getBase, setBase, start

2
					cronometro.stop();
					contnue="pause";
					//btnStart.setText("start"); 
					return; 
				}if(contnue=="pause"){
					cronometro.setBase((long)cronometro.getBase()-memoCronometro+SystemClock.elapsedRealtime());
					cronometro.start();
					contnue="active";
					btnStart.setText("Pause");
				} 
				 
			} 
		});//End of the button start 
		 
		btnStop.setOnClickListener(new OnClickListener() {
			@Override 
			public void onClick(View v) {
				// TODO Auto-generated method stub 
				cronometro.stop();
				btnStart.setText("Start");
				contnue="inactive";