Code example for Chronometer

Methods: setOnChronometerTickListener

0
     * @param chronoTimer The hidden Chronometer object in the Activity. Why use a hidden view? Because it's the easiest 
     *                    way to be notified of 1 second clock ticks. 
     */ 
    public TimingHandler(Chronometer chronoTimer) {
        this.chronoTimer = chronoTimer;
        chronoTimer.setOnChronometerTickListener(onChronometerTickListener);
 
    } 
 
    /** 
     * Starts a new game. 
     */ 
    public void startTimerNew() { 
        chronoTimer.stop();
        chronoTimer.setBase(getCurrentTime());
        chronoTimer.start();
        pauseChronoElapsed = 0;
        levelStartTimeLeft = startTime;
 
    } 
Connect your IDE to all the code out there  Get Codota for Java