bug 954: back out changesets 1a2abe07b53d, 8934b7c0c1cb, and 8ef8d8bae350

This commit is contained in:
Tom Henderson
2012-12-15 23:02:03 -08:00
parent 5bceaed171
commit f1734920c9
9 changed files with 192 additions and 362 deletions

View File

@@ -340,20 +340,6 @@ Just as in any C++ program, you need to define a main function that will be
the first function run. There is nothing at all special here. Your
|ns3| script is just a C++ program.
The next line sets the time resolution to one nanosecond, which happens
to be the default value:
::
Time::SetResolution (Time::NS);
You can change the resolution exactly once (which must be before
``Simulator::Run ()`` is called, below). The mechanism enabling this
flexibility is somewhat memory hungry, so once the resolution has been
set explicitly we release the memory, preventing further updates. (If
you don't set the resolution explicitly, it will default to one nanosecond,
and the memory will be released when the simulation starts.)
The next two lines of the script are used to enable two logging components that
are built into the Echo Client and Echo Server applications: