Change-Id: I0ab887f8bcecdebc1e66773ef50b63af3125090b
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/59880
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
return fEndTime;
}
- @Override
- public long getLength() {
- return fEndTime - fInfo.fStartTime;
- }
-
/**
* Get the name of the system call
*
return fEnd;
}
- @Override
- public long getLength() {
- return (fEnd - fStart);
- }
-
@Override
public int compareTo(@Nullable ISegment o) {
if (o == null) {
long getEnd();
/**
- * The length/duration of the segment. Normally ({@link #getEnd()} -
- * {@link #getStart()}).
+ * The length/duration of the segment.
*
* @return The duration
*/
- long getLength();
+ default long getLength() {
+ return getEnd() - getStart();
+ }
}