Code example for Chronometer

Methods: getBasesetBasestart

0
	} 
 
	public void resumeFeeding() { 
		AppContext appContext = AppContext.getInstance();
		Chronometer chronometer = appContext.getChronometer();
		chronometer.setBase(chronometer.getBase() + (System.currentTimeMillis() - appContext.getPausedTime()));
		chronometer.start();
	} 
 
	public long stopFeeding() { 
		Chronometer chronometer = AppContext.getInstance().getChronometer();
		chronometer.stop();
		return SystemClock.elapsedRealtime() - chronometer.getBase();
	} 
 
	public void bottleStartFeeding() { 
		Chronometer chronometer = AppContext.getInstance().getBottleChronometer();
		chronometer.setBase(SystemClock.elapsedRealtime());
		chronometer.start();
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE