src/simulator/time.cc
changeset 158 47af319de4b8
parent 157 19ffb62f521e
child 161 c3aee00484fc
equal deleted inserted replaced
157:19ffb62f521e 158:47af319de4b8
    96 
    96 
    97 Scalar::Scalar (double scalar)
    97 Scalar::Scalar (double scalar)
    98   : TimeUnit<0> (HighPrecision (scalar))
    98   : TimeUnit<0> (HighPrecision (scalar))
    99 {}
    99 {}
   100 
   100 
       
   101 double
       
   102 Scalar::GetDouble (void) const
       
   103 {
       
   104   return GetHighPrecision ().GetDouble ();
       
   105 }
       
   106 
   101 }; // namespace ns3
   107 }; // namespace ns3
   102 
   108 
   103 
   109 
   104 #ifdef RUN_SELF_TESTS
   110 #ifdef RUN_SELF_TESTS
   105 
   111