@Benchmark public StringBuilder append() { builder.setLength(0); FIXTimestamps.append(timestamp, builder); return builder; }
/** * <p>Update the current timestamp. The current timestamp is used for the * following purposes:</p> * * <ul> * <li>SendingTime(52)</li> * <li>the connection keep-alive mechanism</li> * </ul> */ public void updateCurrentTimestamp() { currentTimeMillis = clock.currentTimeMillis(); currentTime.setMillis(currentTimeMillis); currentTimestamp.setLength(0); FIXTimestamps.append(currentTime, currentTimestamp); }
/** * <p>Update the current timestamp. The current timestamp is used for the * following purposes:</p> * * <ul> * <li>SendingTime(52)</li> * <li>the connection keep-alive mechanism</li> * </ul> */ public void updateCurrentTimestamp() { currentTimeMillis = clock.currentTimeMillis(); currentTime.setMillis(currentTimeMillis); currentTimestamp.setLength(0); FIXTimestamps.append(currentTime, currentTimestamp); }
FIXTimestamps.append(this.currentTime, this.currentTimestamp);
FIXTimestamps.append(this.currentTime, this.currentTimestamp);