| 1 | #include <stdio .h> |
| 2 | … // Standard ns–3modules are omitted. |
| 3 | #include “ns3/symphony–odule.h” |
| 4 | using namespace ns3; |
| 5 | int main(int argc, char*argv[]) { |
| 6 | … |
| 7 | Config::SetDefault (“ns3::SimuClock::ClockDriftType”, EnumValue(SimuClock::RANDOM)); |
| 8 | Config::SetDefault (“ns3::SimuClock::ClockDrift”, TimeValue(MicroSeconds(1))); |
| 9 | Config::SetDefault (“ns3::SimuClock::RandomMean”, DoubleValue(8)); |
| 10 | Config::SetDefault (“ns3::SimuClock::RandomVariance”, DoubleValue(4)); |
| 11 | Config::SetDefault (“ns3::SimuClock::ClockDriftPeriod”, TimeValue(MilliSeconds(5))); |
| 12 | … |
| 13 | return 0; |
| 14 | } |