diff --git a/src/simulator/time.cc b/src/simulator/time.cc index 77edf3bfc..0bdb1f641 100644 --- a/src/simulator/time.cc +++ b/src/simulator/time.cc @@ -129,20 +129,50 @@ TimeTests::~TimeTests () bool TimeTests::RunTests (void) { bool ok = true; + Time t0 = Seconds (10.0); + //std::cout << "t0="< tu3 = t0 * tu2; TimeUnit<-2> tu4 = t0 / tu3; - Time t3 = Seconds (10.0) * Scalar (1.5); - //std::cout << "10.0s * 1.5 = " << t3.ApproximateToSeconds () << "s" << std::endl; - Time t4 = NanoSeconds (10) * Scalar (1.5); - //std::cout << "10ns * 1.5 = " << t4.ApproximateToNanoSeconds () << "ns" << std::endl; + Time t4 = Seconds (10.0) * Scalar (1.5); + //std::cout << "10.0s * 1.5 = " << t4.ApproximateToSeconds () << "s" << std::endl; + Time t5 = NanoSeconds (10) * Scalar (1.5); + //std::cout << "10ns * 1.5 = " << t5.ApproximateToNanoSeconds () << "ns" << std::endl; return ok; }