A Discrete-Event Network Simulator
API
time-probe-example.cc File Reference
#include "ns3/core-module.h"
#include "ns3/gnuplot-helper.h"
#include "ns3/time-probe.h"
#include <string>
+ Include dependency graph for time-probe-example.cc:

Go to the source code of this file.

Classes

class  Emitter
 This is our test object, an object that increments counters at various times and emits one of them as a trace source. More...
 

Functions

void NotifyViaProbe (std::string context, double oldVal, double newVal)
 
void NotifyViaTraceSource (std::string context, Time oldVal, Time newVal)
 

Variables

static ns3::GlobalValue g_verbose ("verbose", "Whether to enable verbose output", ns3::BooleanValue(false), ns3::MakeBooleanChecker())
 

Function Documentation

◆ NotifyViaProbe()

void NotifyViaProbe ( std::string  context,
double  oldVal,
double  newVal 
)

Definition at line 126 of file time-probe-example.cc.

References verbose.

◆ NotifyViaTraceSource()

void NotifyViaTraceSource ( std::string  context,
Time  oldVal,
Time  newVal 
)

Definition at line 113 of file time-probe-example.cc.

References ns3::Time::As(), and verbose.

+ Here is the call graph for this function:

Variable Documentation

◆ g_verbose

ns3::GlobalValue g_verbose("verbose", "Whether to enable verbose output", ns3::BooleanValue(false), ns3::MakeBooleanChecker()) ( "verbose"  ,
"Whether to enable verbose output"  ,
ns3::BooleanValue(false)  ,
ns3::MakeBooleanChecker()   
)
static