src/simulator/nstime.h
changeset 2921 8a616a8b723a
parent 2451 8979f07befd5
child 2972 d76553495b91
equal deleted inserted replaced
2920:67a8290b9336 2921:8a616a8b723a
   272   return TimeUnit<N1+N2> (retval);
   272   return TimeUnit<N1+N2> (retval);
   273 }
   273 }
   274 template <int N1, int N2>
   274 template <int N1, int N2>
   275 TimeUnit<N1-N2> operator / (TimeUnit<N1> const &lhs, TimeUnit<N2> const &rhs)
   275 TimeUnit<N1-N2> operator / (TimeUnit<N1> const &lhs, TimeUnit<N2> const &rhs)
   276 {
   276 {
       
   277   NS_ASSERT (rhs.GetHighPrecision ().GetDouble () != 0);
   277   HighPrecision retval = lhs.GetHighPrecision ();
   278   HighPrecision retval = lhs.GetHighPrecision ();
   278   retval.Div (rhs.GetHighPrecision ());
   279   retval.Div (rhs.GetHighPrecision ());
   279   return TimeUnit<N1-N2> (retval);
   280   return TimeUnit<N1-N2> (retval);
   280 }
   281 }
   281 template <int N>
   282 template <int N>