Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Static Public Member Functions | |
static String | throughput (long length, long deltaMs) |
static String | formatByte (long bytes) |
static String | formatDuration (long seconds) |
static String de.fu_berlin.inf.dpp.util.CoreUtils.formatByte | ( | long | bytes | ) | [static] |
Turns a long representing a file size in bytes into a human readable representation based on 1KB = 1000 Byte, 1000 KB=1MB, etc. (SI)
static String de.fu_berlin.inf.dpp.util.CoreUtils.formatDuration | ( | long | seconds | ) | [static] |
Formats a given duration in seconds (e.g. achieved by using a StopWatch) as HH:MM:SS
seconds |
static String de.fu_berlin.inf.dpp.util.CoreUtils.throughput | ( | long | length, |
long | deltaMs | ||
) | [static] |
Returns a string representation of the throughput when processing the given number of bytes in the given time in milliseconds.