ThruputMeter¶
Package: inet.common.misc
simple module ThruputMeter
Thruput measurement utility module.
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for all INET simple modules. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
startTime |
double |
0s |
|
batchSize |
int |
50 |
|
maxInterval |
double |
1s |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
ThruputMeter |
|
display |
i=block/timer |
|
networkNode |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
in |
input |
||
out |
output |
Source code¶
//
// Thruput measurement utility module.
//
simple ThruputMeter extends SimpleModule like IHook
{
parameters:
@class(ThruputMeter);
@networkNode();
double startTime @unit(s) = default(0s);
int batchSize = default(50);
double maxInterval @unit(s) = default(1s);
@display("i=block/timer");
gates:
input in;
output out;
}