Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.util.CoreUtils Class Reference

List of all members.

Static Public Member Functions

static String throughput (long length, long deltaMs)
static String formatByte (long bytes)
static String formatDuration (long seconds)

Member Function Documentation

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

Parameters:
seconds
Returns:
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.

 All Classes Namespaces Files Functions Variables Enumerations