allow the user to specify microseconds and nanoseconds in 64bit units.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 13 Dec 2006 15:20:03 +0100
changeset 199 8c6ae79c3641
parent 198 91baf9670758
child 200 46031a283b0d
allow the user to specify microseconds and nanoseconds in 64bit units.
src/simulator/nstime.h
src/simulator/time.cc
--- a/src/simulator/nstime.h	Wed Dec 13 15:19:06 2006 +0100
+++ b/src/simulator/nstime.h	Wed Dec 13 15:20:03 2006 +0100
@@ -368,7 +368,7 @@
 {
 public:
   MicroSeconds ();
-  MicroSeconds (uint32_t ms);
+  MicroSeconds (uint64_t ms);
 };
 /**
  * \brief create ns3::Time instances in units of nanoseconds.
@@ -383,7 +383,7 @@
 {
 public:
   NanoSeconds ();
-  NanoSeconds (uint32_t ms);
+  NanoSeconds (uint64_t ms);
 };
 
 /**
--- a/src/simulator/time.cc	Wed Dec 13 15:19:06 2006 +0100
+++ b/src/simulator/time.cc	Wed Dec 13 15:20:03 2006 +0100
@@ -73,13 +73,13 @@
 MicroSeconds::MicroSeconds ()
   : TimeUnit<1> ()
 {}
-MicroSeconds::MicroSeconds (uint32_t us)
+MicroSeconds::MicroSeconds (uint64_t us)
   : TimeUnit<1> (HighPrecision (us * 1000, false))
 {}
 NanoSeconds::NanoSeconds ()
   : TimeUnit<1> ()
 {}
-NanoSeconds::NanoSeconds (uint32_t ns)
+NanoSeconds::NanoSeconds (uint64_t ns)
   : TimeUnit<1> (HighPrecision (ns, false))
 {}