Last change
on this file since 9658 was
9658,
checked in by bensch, 18 years ago
|
new smooth-allocator class, this is also a test, to see, if my template experience is good enough for the C++ generic Template Programming Lecture
|
File size:
655 bytes
|
Line | |
---|
1 | |
---|
2 | /*! |
---|
3 | * @file timer.h |
---|
4 | * @brief Definition of Time Class. |
---|
5 | * |
---|
6 | * Here is a Class that is for measuring time, |
---|
7 | * getting the current time, and stepping through time. |
---|
8 | * |
---|
9 | * @todo: Implement: |
---|
10 | * 1. TimeStep |
---|
11 | * 2. ApproxTimer |
---|
12 | * 3. Class that handles the time-stepping |
---|
13 | * 4. Transformations from one time-coding into another: |
---|
14 | * 5. debug of Timer. |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __TIMER_H__ |
---|
18 | #define __TIMER_H__ |
---|
19 | |
---|
20 | //! A class to handle time itself |
---|
21 | class Timer |
---|
22 | { |
---|
23 | public: |
---|
24 | Timer(); |
---|
25 | Timer(int time); |
---|
26 | |
---|
27 | void debug() const; |
---|
28 | |
---|
29 | /// STATIC PUBLIC MEMBERS |
---|
30 | static double getNow(); |
---|
31 | |
---|
32 | private: |
---|
33 | double _lastTime; |
---|
34 | double _timeStep; |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* __TIMER_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.