Scheduler: Add formatClockServiceInterval Console formatter
g0dil [Mon, 27 Apr 2009 16:25:37 +0000 (16:25 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1198 270642c3-0616-0410-b53a-bc976706d245

Scheduler/ClockService.cc
Scheduler/ClockService.hh

index 7bba90d..7754f4c 100644 (file)
@@ -79,6 +79,12 @@ senf::parseClockServiceInterval(console::ParseCommandInfo::TokensRange const & t
         throw senf::console::SyntaxErrorException();
 }
 
+prefix_ void senf::formatClockServiceInterval(ClockService::clock_type interval,
+                                              std::ostream & os)
+{
+    os << interval << "ns";
+}
+
 ///////////////////////////////cc.e////////////////////////////////////////
 #undef prefix_
 //#include "ClockService.mpp"
index 68b4a44..8fb1341 100644 (file)
@@ -199,6 +199,8 @@ namespace senf {
      */
     void parseClockServiceInterval(console::ParseCommandInfo::TokensRange const & tokens, 
                                    ClockService::clock_type & out);
+
+    void formatClockServiceInterval(ClockService::clock_type interval, std::ostream & os);
 }
 
 ///////////////////////////////hh.e////////////////////////////////////////