-#define EVT_TIMER(id, func) \
- DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL),
-
-#endif // wxUSE_GUI && wxUSE_TIMER
-
-// ----------------------------------------------------------------------------
-// wxStopWatch: measure time intervals with up to 1ms resolution
-// ----------------------------------------------------------------------------
-
-#if wxUSE_STOPWATCH
-
-class WXDLLEXPORT wxStopWatch
-{
-public:
- // ctor starts the stop watch
- wxStopWatch() { Start(); }
- void Start(long t = 0);
- void Pause() { m_pause = GetElapsedTime(); }
- void Resume() { Start(m_pause); }
-
- // get elapsed time since the last Start() or Pause() in milliseconds
- long Time() const;
-
-protected:
- // returns the elapsed time since t0
- long GetElapsedTime() const;
-
-private:
- wxLongLong m_t0; // the time of the last Start()
- long m_pause; // the time of the last Pause() or 0
-};
-
-#endif // wxUSE_STOPWATCH
-
-#if wxUSE_LONGLONG
+#define wxTimerEventHandler(func) \
+ (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTimerEventFunction, &func)