Code example for Chronometer

Methods: getBasestop

				// ArrayList<ArrayList<Object>> l = dbm.getAllRowsAsArrays(); 
				// Log.i("====before insert===", "count=" + l.size()); 
				// dbm.addRow(targetName, "nothing"); 
				long elapsedMillis = SystemClock.elapsedRealtime()
						- crono.getBase();
				// db op 
				ContentValues cv = new ContentValues();
				cv.put("name", targetName);
				cv.put("lasting", 50);
				cv.put("created", 12313);
				db.insert(TABLENAME, null, cv);
				Intent intent = new Intent();
				intent.putExtra("msg", elapsedMillis);
				setResult(Activity.RESULT_OK, intent);
Connect your IDE to all the code out there  Get Codota for Java