# endif
#endif
+#if defined(__MWERKS__) && defined(__WXMSW__)
+# undef HAVE_FTIME
+# undef HAVE_GETTIMEOFDAY
+#endif
+
#include <time.h>
#ifndef __WXMAC__
#include <sys/types.h> // for time_t
#if wxUSE_GUI && wxUSE_TIMER
+wxTimerBase::~wxTimerBase()
+{
+ // this destructor is required for Darwin
+}
+
void wxTimerBase::Notify()
{
// the base class version generates an event if it has owner - which it
long wxStopWatch::GetElapsedTime() const
{
- return (wxGetLocalTimeMillis() - m_t0).GetLo();
+ return (wxGetLocalTimeMillis() - m_t0).GetLo();
}
long wxStopWatch::Time() const
{
- return (m_pause ? m_pause : GetElapsedTime());
+ return m_pauseCount ? m_pause : GetElapsedTime();
}
#endif // wxUSE_LONGLONG
#pragma message("wxStopWatch will be up to second resolution!")
#elif defined(__BORLANDC__)
#pragma message "wxStopWatch will be up to second resolution!"
- #elif
+ #else
#warning "wxStopWatch will be up to second resolution!"
#endif // compiler
#endif