Fix output unit for Time::operator<<
[libi2ncommon] / src / timefunc.hxx
index 5fd4911..3cb34ad 100644 (file)
@@ -344,7 +344,7 @@ namespace clock {
              *
              * POSIX defines the ns part as *long*. Technically, that means
              * that on machines where *sizeof long* equals *sizeof int*, it can
-             * represent only up to arund 2.1 seconds. In this range, the loop
+             * represent only up to around 2.1 seconds. In this range, the loop
              * version is most likely faster than division. However, since in
              * practice *long* is 8 bytes just about anywhere, we have to
              * handle greater dividends first.
@@ -626,7 +626,7 @@ namespace clock {
     inline std::ostream &
     operator<< (std::ostream &os, const Time &t)
     {
-        os << I2n::to_string (t.value.tv_sec)  << "ms, "
+        os << I2n::to_string (t.value.tv_sec)  << "s, "
            << I2n::to_string (t.value.tv_nsec) << "ns"
            ;