samples/main-simulator.cc
changeset 163 2a7e05018eeb
parent 162 5b398ac221c7
child 4309 bf8c338c7820
--- a/samples/main-simulator.cc	Tue Nov 21 15:50:09 2006 +0100
+++ b/samples/main-simulator.cc	Tue Nov 21 15:53:32 2006 +0100
@@ -17,12 +17,12 @@
 {
   Simulator::Schedule (Seconds (10.0), 
                        &MyModel::DealWithEvent, 
-                       this, Simulator::Now ().ApproximateToSeconds ());
+                       this, Simulator::Now ().GetSeconds ());
 }
 void
 MyModel::DealWithEvent (double value)
 {
-  std::cout << "Member method received event at " << Simulator::Now ().ApproximateToSeconds () 
+  std::cout << "Member method received event at " << Simulator::Now ().GetSeconds () 
             << "s started at " << value << "s" << std::endl;
 }
 
@@ -30,7 +30,7 @@
 random_function (MyModel *model)
 {
   std::cout << "random function received event at " << 
-      Simulator::Now ().ApproximateToSeconds () << "s" << std::endl;
+      Simulator::Now ().GetSeconds () << "s" << std::endl;
   model->Start ();
 }