return tempIn.getCaptureTimestamp().getTime();
}
/** @return the time of the last packet in the trace file */
public long getFinishTime() throws FileNotFoundException, IOException, EOPacketStream, StreamFormatException, SyntaxError {
RawformatInputStream tempIn;
long startTime;
startTime = System.currentTimeMillis();
tempIn = new RawformatInputStream(fileName);
int count = 0;
try {
while ( true ) {
count++;
tempIn.nextPacket();
//System.out.println("Count: " + count + " at time " + tempIn.getCaptureTimestamp().getTime());
}
} catch (EOPacketStream e) {
} catch (StreamFormatException e) {
}
logger.debug("Time taken: " + (System.currentTimeMillis() - startTime));
return tempIn.getCaptureTimestamp().getTime();
}