#include "wx/timer.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
-#endif
wxTimer::wxTimer()
{
m_milli = 0 ;
- m_lastMilli = -1 ;
m_id = 0;
m_oneShot = FALSE;
}
bool wxTimer::Start(int milliseconds,bool mode)
{
m_oneShot = mode ;
- if (m_milliseconds < 0)
- m_milliseconds = lastMilli;
-
- if (m_milliseconds <= 0)
+ if (milliseconds <= 0)
return FALSE;
- m_lastMilli = m_milli = m_milliseconds;
+ m_milli = milliseconds;
// TODO: set the timer going.
return FALSE;