Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/blink/src/lib/util/timer.h @ 10595

Last change on this file since 10595 was 9659, checked in by bensch, 18 years ago

some thoughts

File size: 653 bytes
Line 
1/*!
2 * @file timer.h
3 * @brief Definition of Time Class.
4 *
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.
14 */
15
16#ifndef __TIMER_H__
17#define __TIMER_H__
18
19//! A class to handle time itself
20class Timer
21{
22public:
23  Timer();
24  Timer(int time);
25
26  void debug() const;
27
28  /// STATIC PUBLIC MEMBERS
29  static double getNow();
30
31  private:
32    double         _lastTime;
33    double         _timeStep;
34};
35
36#endif /* __TIMER_H__ */
Note: See TracBrowser for help on using the repository browser.