code: public LogicalTimestamp update(LogicalTimestamp timestamp) {
      if (timestamp.value() > currentTimestamp.value()) {
        this.currentTimestamp = timestamp;
      }
      return currentTimestamp;
    }
docs: Updates the clock using the given timestamp.
  
  @param timestamp the timestamp with which to update the clock
  @return the updated clock time