Add main page for Doxygen generated documentation.
[tairent.git] / src / main / ratemeasurer.h
blob218748e66f700988c0c1d35338c65cab6d7ec556
1 /***************************************************************************
2 * *
3 * Copyright (C) 2006 David Brodsky *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation and appearing *
8 * in the file LICENSE.GPL included in the packaging of this file. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * General Public License for more details. *
14 * *
15 ***************************************************************************/
17 #ifndef _main_ratemeasurer_h
18 #define _main_ratemeasurer_h
20 namespace Tairent
23 namespace Main
26 class RateMeasurer
28 public:
29 RateMeasurer(double p);
31 ~RateMeasurer();
33 double getRate() {
34 return rate;
37 void update(unsigned int amount);
39 private:
40 double lastTime;
41 double period;
42 double rate;
43 double startTime;
46 }; // namespace Main
48 }; // namespace Tairent
50 #endif
52 // vim: ai sw=4 ts=4 noet fdm=marker