}
};
column = addColumnFunction(bounds, column, function, "Trace Timestamp");
}
if (showRelativeTime) {
final Function1 function = new FunctionLong() {
@Override
public Long apply(Object element) {
IMessage message = Exchanges.asMessage(element);
if (message != null) {
return message.getRelativeTime();
}
return null;
}
};
column = addColumnFunction(bounds, column, function, "Relative Time (ms)");
}
if (showElapsedTime) {
final Function1 function = new FunctionLong() {
@Override
public Long apply(Object element) {
IMessage message = Exchanges.asMessage(element);
if (message != null) {
return message.getElapsedTime();