如何在 omnet++ 中记录应用程序 int 变量?
How to record an application int variable in omnet++?
我正在模拟克隆攻击方法,我有一个 int 类型的变量,我想在结果中记录它的值,我该怎么做?
在您的 finish()
函数中,只需添加以下行:
recordScalar("#yourVariable", yourVariable);
我正在模拟克隆攻击方法,我有一个 int 类型的变量,我想在结果中记录它的值,我该怎么做?
在您的 finish()
函数中,只需添加以下行:
recordScalar("#yourVariable", yourVariable);