commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10015 - openbts/branches/developers/dburgess00/trunk/


From: dburgess00
Subject: [Commit-gnuradio] r10015 - openbts/branches/developers/dburgess00/trunk/CommonLibs
Date: Tue, 18 Nov 2008 17:15:29 -0700 (MST)

Author: dburgess00
Date: 2008-11-18 17:15:28 -0700 (Tue, 18 Nov 2008)
New Revision: 10015

Modified:
   openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.cpp
   openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.h
Log:
Added ostream operator<< for struct timespec.


Modified: openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.cpp
===================================================================
--- openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.cpp 
2008-11-18 22:30:04 UTC (rev 10014)
+++ openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.cpp 
2008-11-19 00:15:28 UTC (rev 10015)
@@ -82,5 +82,12 @@
 }
 
 
+ostream& operator<<(ostream& os, const struct timespec& ts)
+{
+       os << ts.tv_sec << "," << ts.tv_nsec;
+       return os;
+}
 
+
+
 // vim: ts=4 sw=4

Modified: openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.h
===================================================================
--- openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.h   
2008-11-18 22:30:04 UTC (rev 10014)
+++ openbts/branches/developers/dburgess00/trunk/CommonLibs/Timeval.h   
2008-11-19 00:15:28 UTC (rev 10015)
@@ -87,8 +87,10 @@
 
 };
 
-std::ostream& operator<<(std::ostream& os, const Timeval& tv);
+std::ostream& operator<<(std::ostream& os, const Timeval&);
 
+std::ostream& operator<<(std::ostream& os, const struct timespec&);
 
+
 #endif
 // vim: ts=4 sw=4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]