A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
timespan-example.cc File Reference

Example to demonstrate that both a TimeSpan attribute and a TimeSpan variable can be set via the CommandLine system. More...

#include "ns3/core-module.h"
Include dependency graph for timespan-example.cc:

Go to the source code of this file.

Classes

class  ns3::ObjectWithTimeSpanAttribute
 Object containing an attribute represented by a TimeSpan. More...

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.

Detailed Description

Example to demonstrate that both a TimeSpan attribute and a TimeSpan variable can be set via the CommandLine system.

The example expects that the command line arguments are such that the TimeSpan attribute is set to {100ms,200ms} and the TimeSpan variable is set to {300ms,400ms}. If that is not the case, a non-zero value is returned.

Definition in file timespan-example.cc.