]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/timer.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
19 #include "wx/object.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 /* Timer functions (milliseconds) */
34 /* Gets time since last wxStartTimer or wxGetElapsedTime */
35 long wxGetElapsedTime(bool resetTimer
= TRUE
);
37 /* EXPERIMENTAL: comment this out if it doesn't compile. */
38 bool wxGetLocalTime(long *timeZone
, int *dstObserved
);
40 /* Get number of seconds since 00:00:00 GMT, Jan 1st 1970. */
41 long wxGetCurrentTime();
43 //-----------------------------------------------------------------------------
45 //-----------------------------------------------------------------------------
47 class wxTimer
: public wxObject
53 int Interval() const { return m_time
; }
55 bool OneShot() const { return m_oneShot
; }
57 virtual bool Start( int millisecs
= -1, bool oneShot
= FALSE
);
60 virtual void Notify() = 0; // override this
68 DECLARE_ABSTRACT_CLASS(wxTimer
)
71 #endif // __GTKTIMERH__