]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTimer implementation
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "timer.h"
18 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_ABSTRACT_CLASS(wxTimer
, wxObject
)
35 bool wxTimer::Start(int milliseconds
,bool mode
)
38 if (m_milliseconds
< 0)
39 m_milliseconds
= lastMilli
;
41 if (m_milliseconds
<= 0)
44 m_lastMilli
= m_milli
= m_milliseconds
;
46 // TODO: set the timer going.