2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>
4 * This file is part of CasparCG.
6 * CasparCG is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * CasparCG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _TIMER_HELPER_H__
22 #define _TIMER_HELPER_H__
24 #include "FlashAxContainer.h"
31 TimerHelper(const TimerHelper&);
32 const TimerHelper& operator=(const TimerHelper&);
37 TimerHelper(DWORD id, DWORD first, DWORD interv, ITimerSink* pTS)
49 void Setup(DWORD id, DWORD first, DWORD interv, ITimerSink* pTS)
64 value.ulVal = currentTime;
66 pTimerSink->OnTimer(value);
67 currentTime += interval;
76 ATL::CComPtr<ITimerSink> pTimerSink;
82 #endif //_TIMER_HELPER_H__