Java Second bytesPerSecond(long totalByteCount, long elapsed)

Here you can find the source of bytesPerSecond(long totalByteCount, long elapsed)

Description

bytes Per Second

License

Open Source License

Declaration

static long bytesPerSecond(long totalByteCount, long elapsed) 

Method Source Code

//package com.java2s;

public class Main {
    static final int MILLIS = 1000;

    static long bytesPerSecond(long totalByteCount, long elapsed) {
        return (long) (((double) totalByteCount / (double) elapsed) * MILLIS);
    }/*from ww w . ja  va  2 s .co  m*/
}

Related

  1. addTimes(String dateTime, int second)
  2. advanceCurrentTimeSeconds()
  3. appendSeconds(StringBuilder time, long seconds)
  4. appendSecondsToEncodeOutput(StringBuilder sb, int sec, int fsec, int precision, boolean fillzeros)
  5. asStringInSeconds(long duration)
  6. calculateSeconds(long duration)
  7. countSecond(Long time)
  8. currentSecondsPlus(final long seconds)
  9. dateArrayFromSeconds(int inSeconds)