X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2Fdetail%2FEventBinding.cti;h=fb50ae497ff59b197408e6f3b5ad48613be49327;hb=0327b3f303ea2a61d44a30bfaac022874dcf2a0d;hp=f37637e4535ad099c0f0bc46b5b1df0346733ebe;hpb=7465ea4f6d3d54622bd783106cf8b60d5f133343;p=senf.git diff --git a/PPI/detail/EventBinding.cti b/PPI/detail/EventBinding.cti index f37637e..fb50ae4 100644 --- a/PPI/detail/EventBinding.cti +++ b/PPI/detail/EventBinding.cti @@ -26,6 +26,7 @@ //#include "EventBinding.ih" // Custom includes +#include "../EventManager.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// @@ -36,7 +37,7 @@ template prefix_ void senf::ppi::detail::EventBindingHelper::callback(EventArg event, - boost::posix_time::ptime time) + ClockService::clock_type time) { self().eventTime(time); self().callback_(event); @@ -45,7 +46,7 @@ senf::ppi::detail::EventBindingHelper::callback(EventArg event, template prefix_ void senf::ppi::detail::EventBindingHelper::callback(EventArg event) { - callback(event, boost::posix_time::microsec_clock::universal_time()); + callback(event, self().manager().now()); } //////////////////////////////////////// @@ -62,7 +63,7 @@ prefix_ Self & senf::ppi::detail::EventBindingHelper::self() template prefix_ void -senf::ppi::detail::EventBindingHelper::callback(boost::posix_time::ptime time) +senf::ppi::detail::EventBindingHelper::callback(ClockService::clock_type time) { self().eventTime(time); self().callback_(); @@ -71,7 +72,7 @@ senf::ppi::detail::EventBindingHelper::callback(boost::posix_time::pt template prefix_ void senf::ppi::detail::EventBindingHelper::callback() { - callback(boost::posix_time::microsec_clock::universal_time()); + callback(self().manager().now()); } ////////////////////////////////////////