Add Simulator::StopAt()
authorTom Henderson <tomh@tomh.org>
Thu, 15 Feb 2007 21:56:24 -0800
changeset 289 d0c5b46b861a
parent 288 76c95195c166
child 290 6c88561a0907
Add Simulator::StopAt()
samples/ns-2/simple.tcl.cc
--- a/samples/ns-2/simple.tcl.cc	Thu Feb 15 21:54:16 2007 -0800
+++ b/samples/ns-2/simple.tcl.cc	Thu Feb 15 21:56:24 2007 -0800
@@ -22,6 +22,7 @@
 // replacement ns-3 code, to highlight the change in design
 
 #include "ns3/simulator.h"
+#include "ns3/nstime.h"
 
 using namespace ns3;
 
@@ -92,7 +93,7 @@
     // puts [$cbr0 set interval_]
     // 
     // $ns at 3.0 "finish"
-    // Simulator::StopAt (3.0);
+    Simulator::StopAt (Seconds(3.0));
     // 
     // proc finish {} {
     //         global ns f nf