From 69f8408b04b476edcc8fbbccb3cc43d3d9bb6abc Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Thu, 15 Feb 2007 21:56:24 -0800 Subject: [PATCH] Add Simulator::StopAt() --- samples/ns-2/simple.tcl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/ns-2/simple.tcl.cc b/samples/ns-2/simple.tcl.cc index 67543b5e0..f0b23a1de 100644 --- a/samples/ns-2/simple.tcl.cc +++ b/samples/ns-2/simple.tcl.cc @@ -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 @@ int main (int argc, char *argv[]) // puts [$cbr0 set interval_] // // $ns at 3.0 "finish" - // Simulator::StopAt (3.0); + Simulator::StopAt (Seconds(3.0)); // // proc finish {} { // global ns f nf