Rev | Line | |
---|
[7899] | 1 | /*! |
---|
| 2 | * @file timer.h |
---|
| 3 | * @brief Definition of Time Class. |
---|
| 4 | * |
---|
[9658] | 5 | * Here is a Class that is for measuring time, |
---|
| 6 | * getting the current time, and stepping through time. |
---|
| 7 | * |
---|
| 8 | * @todo: Implement: |
---|
| 9 | * 1. TimeStep |
---|
| 10 | * 2. ApproxTimer |
---|
| 11 | * 3. Class that handles the time-stepping |
---|
| 12 | * 4. Transformations from one time-coding into another: |
---|
| 13 | * 5. debug of Timer. |
---|
[7899] | 14 | */ |
---|
| 15 | |
---|
| 16 | #ifndef __TIMER_H__ |
---|
| 17 | #define __TIMER_H__ |
---|
| 18 | |
---|
| 19 | //! A class to handle time itself |
---|
| 20 | class Timer |
---|
| 21 | { |
---|
[7900] | 22 | public: |
---|
[9658] | 23 | Timer(); |
---|
| 24 | Timer(int time); |
---|
| 25 | |
---|
| 26 | void debug() const; |
---|
| 27 | |
---|
| 28 | /// STATIC PUBLIC MEMBERS |
---|
[7899] | 29 | static double getNow(); |
---|
| 30 | |
---|
[9658] | 31 | private: |
---|
| 32 | double _lastTime; |
---|
| 33 | double _timeStep; |
---|
[7899] | 34 | }; |
---|
| 35 | |
---|
| 36 | #endif /* __TIMER_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.