/** * Get the average output speed in terms of bytes-per-second. * * @return the average output speed in terms of bytes-per-second. * {@code getTotalBytes() / (getTimeWriting() / 1000.0)}. */ public double getTransferRate() { return getTotalBytes() / (getTimeWriting() / 1000.0); }
packTransferTime = writer.getStatistics().getTimeWriting();
/** * @return time in milliseconds spent writing the pack output, from * start of header until end of trailer. The transfer speed can * be approximated by dividing {@link #getTotalBytes()} by this * value. */ public long getTimeWriting() { return statistics.getTimeWriting(); }
/** * @return get the average output speed in terms of bytes-per-second. * {@code getTotalBytes() / (getTimeWriting() / 1000.0)}. */ public double getTransferRate() { return getTotalBytes() / (getTimeWriting() / 1000.0); }
/** * Get the average output speed in terms of bytes-per-second. * * @return the average output speed in terms of bytes-per-second. * {@code getTotalBytes() / (getTimeWriting() / 1000.0)}. */ public double getTransferRate() { return getTotalBytes() / (getTimeWriting() / 1000.0); }
packTransferTime = writer.getStatistics().getTimeWriting();
packTransferTime = writer.getStatistics().getTimeWriting();