From: g0dil Date: Mon, 27 Apr 2009 16:25:37 +0000 (+0000) Subject: Scheduler: Add formatClockServiceInterval Console formatter X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=2e174b1e977278abe6787c8de6852a52e4e41abb;p=senf.git Scheduler: Add formatClockServiceInterval Console formatter git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1198 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Scheduler/ClockService.cc b/Scheduler/ClockService.cc index 7bba90d..7754f4c 100644 --- a/Scheduler/ClockService.cc +++ b/Scheduler/ClockService.cc @@ -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" diff --git a/Scheduler/ClockService.hh b/Scheduler/ClockService.hh index 68b4a44..8fb1341 100644 --- a/Scheduler/ClockService.hh +++ b/Scheduler/ClockService.hh @@ -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////////////////////////////////////////