]> git.saurik.com Git - wxWidgets.git/blob - src/mac/timer.cpp
Fixed compilation in release mode
[wxWidgets.git] / src / mac / timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: timer.cpp
3 // Purpose: wxTimer implementation
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "timer.h"
14 #endif
15
16 #include "wx/timer.h"
17
18 IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
19
20 wxTimer::wxTimer()
21 {
22 m_milli = 0 ;
23 m_id = 0;
24 m_oneShot = FALSE;
25 }
26
27 wxTimer::~wxTimer()
28 {
29 Stop();
30 }
31
32 bool wxTimer::Start(int milliseconds,bool mode)
33 {
34 m_oneShot = mode ;
35 if (milliseconds <= 0)
36 return FALSE;
37
38 m_milli = milliseconds;
39
40 // TODO: set the timer going.
41 return FALSE;
42 }
43
44 void wxTimer::Stop()
45 {
46 m_id = 0 ;
47 m_milli = 0 ;
48 }
49
50