public class ThroughputEMA extends Object
Constructor and Description |
---|
ThroughputEMA(long numberOfSamples) |
Modifier and Type | Method and Description |
---|---|
long |
calculateThroughput(long dataSize,
long time)
Calculating the throughput over the size of data which were received in given amount of time.
|
public long calculateThroughput(long dataSize, long time)
dataSize
- Size of the data which were received in given time.time
- Time during which the data was received.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.