Timing.java
package org.jbehave.core.steps;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class Timing {
private long durationInMillis;
private long start;
private long end;
public Timing() {
}
public Timing(Timer timer) {
this.start = timer.getStart();
this.end = timer.getEnd();
this.durationInMillis = timer.getDuration();
}
public long getDurationInMillis() {
return durationInMillis;
}
public long getStart() {
return start;
}
public long getEnd() {
return end;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
}