# 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
// do NOT just shut off these warnings, drop me a line instead at
// <guille@iies.es>
- #if defined(__VISUALC__)
+ #if defined(__VISUALC__) || defined (__WATCOMC__)
#pragma message("wxStopWatch will be up to second resolution!")
#elif defined(__BORLANDC__)
#pragma message "wxStopWatch will be up to second resolution!"