]> git.saurik.com Git - wxWidgets.git/blame - include/wx/timer.h
Renameing funktions to prevent name clashes
[wxWidgets.git] / include / wx / timer.h
CommitLineData
34138703
JS
1#ifndef _WX_TIMER_H_BASE_
2#define _WX_TIMER_H_BASE_
c801d85f 3
2049ba38 4#if defined(__WXMSW__)
c801d85f 5#include "wx/msw/timer.h"
2049ba38 6#elif defined(__WXMOTIF__)
34138703 7#include "wx/motif/timer.h"
2049ba38 8#elif defined(__WXGTK__)
c801d85f 9#include "wx/gtk/timer.h"
b4e76e0d
RR
10#elif defined(__WXQT__)
11#include "wx/qt/timer.h"
34138703
JS
12#elif defined(__WXMAC__)
13#include "wx/mac/timer.h"
1777b9bb
DW
14#elif defined(__WXPM__)
15#include "wx/os2/timer.h"
34138703
JS
16#elif defined(__WXSTUBS__)
17#include "wx/stubs/timer.h"
c801d85f
KB
18#endif
19
f0599ea9
SB
20class wxChrono
21{
22public:
23 wxChrono();
24
25 void Start(long t=0);
26 void Pause();
27 void Resume();
28
29 long Time();
30
31private:
32 long m_t0;
33 long m_pause;
34};
35
36// Timer functions (milliseconds)
37void WXDLLEXPORT wxStartTimer();
38
39// Gets time since last wxStartTimer or wxGetElapsedTime
40long WXDLLEXPORT wxGetElapsedTime(bool resetTimer = TRUE);
41
42// EXPERIMENTAL: comment this out if it doesn't compile.
43bool WXDLLEXPORT wxGetLocalTime(long *timeZone, int *dstObserved);
44
45// Get number of seconds since 00:00:00 GMT, Jan 1st 1970.
46long WXDLLEXPORT wxGetCurrentTime();
47
48// Get number of milliseconds since 00:00:00 GMT, Jan 1st 1970.
4f3ac409 49long WXDLLEXPORT wxGetCurrentMTime();
f0599ea9 50
c801d85f 51#endif
34138703 52 // _WX_TIMER_H_BASE_