public static boolean doCheckPoint(){
  if (forceChkpt) {
    forceChkpt=false;
    return true;
  }
  if (chkptDuration == 0) {
    return false;
  }
  long now=System.currentTimeMillis();
  if (now - lastChkpt >= TLCGlobals.chkptDuration) {
    lastChkpt=now;
    return true;
  }
  return false;
}

public static boolean doCheckPoint ( ) { if ( forceChkpt ) { forceChkpt = false ; return true ; } if ( chkptDuration == 0 ) { return false ; } long now = System . currentTimeMillis ( ) ; if ( now - lastChkpt >= TLCGlobals . chkptDuration ) { lastChkpt = now ; return true ; } return false ; }
important note : the method is unsynchronized . it is the caller ' s responsibility to ensure that only a single thread calls this method .
