utils/bench-simulator.cc
changeset 143 552ff26b4224
parent 131 f4fb87e77034
child 150 663120712cd9
--- a/utils/bench-simulator.cc	Sat Oct 28 17:44:15 2006 +0200
+++ b/utils/bench-simulator.cc	Sat Oct 28 21:21:34 2006 +0200
@@ -73,7 +73,7 @@
     time.Start ();
     for (std::vector<uint64_t>::const_iterator i = m_distribution.begin ();
          i != m_distribution.end (); i++) {
-        Simulator::Schedule (Time::AbsNs (*i), &Bench::Cb, this);
+        Simulator::Schedule (Now () + NanoSeconds (*i), &Bench::Cb, this);
     }
     init = time.End ();
 
@@ -103,9 +103,9 @@
         m_current = m_distribution.begin ();
     }
     if (gDebug) {
-        std::cerr << "event at " << Simulator::Now ().S () << "s" << std::endl;
+        std::cerr << "event at " << Simulator::Now ().ApproximateToSeconds () << "s" << std::endl;
     }
-    Simulator::Schedule (Time::AbsNs (*m_current), &Bench::Cb, this);
+    Simulator::Schedule (Now () + NanoSeconds (*m_current), &Bench::Cb, this);
     m_current++;
     m_n++;
 }