protected boolean isTimeForBeat(){
  long timeNow=System.currentTimeMillis();
  return (timeNow - this.timeOfLastBeat) > this.intervalMs;
}

protected boolean isTimeForBeat ( ) { long timeNow = System . currentTimeMillis ( ) ; return ( timeNow - this . timeOfLastBeat ) > this . intervalMs ; }
determine whether or not a new heart - beat signal is required .
