Develop and Download Open Source Software

Browse Subversion Repository

Contents of /common/CycleTimer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 383 - (show annotations) (download) (as text)
Tue Dec 11 07:55:09 2012 UTC (11 years, 5 months ago) by satofumi
File MIME type: text/x-chdr
File size: 577 byte(s)
fix compile error
1 #ifndef CYCLE_TIMER_H
2 #define CYCLE_TIMER_H
3
4 /*!
5 \file
6 \brief 周期タイマー
7
8 \author Satofumi KAMIMURA
9
10 $Id$
11 */
12
13 #include <memory>
14 #include <cstddef>
15
16
17 namespace beego {
18 class CycleTimer {
19 CycleTimer(void);
20 CycleTimer(const CycleTimer& rhs);
21 CycleTimer& operator = (const CycleTimer& rhs);
22
23 struct pImpl;
24 const std::auto_ptr<pImpl> pimpl;
25
26 public:
27 enum {
28 TimeExactly = true,
29 };
30 explicit CycleTimer(size_t cycle_msec, bool times_exactly = false);
31 ~CycleTimer(void);
32
33 void wait(void);
34 };
35 };
36
37 #endif /* !CYCLE_TIMER_H */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26