diff options
author | Stijn Buys <ingar@osirion.org> | 2008-01-30 17:36:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-01-30 17:36:33 +0000 |
commit | 107ed6e6af67ff81708db22603f626a54c9cb198 (patch) | |
tree | 7aaf7f00a993b8979db02a2ae1c482c4f5d26e65 /src/server/timer.h | |
parent | d584d29ac49182130d643c9221047e0acb5cfa01 (diff) |
accomodate the new modules
Diffstat (limited to 'src/server/timer.h')
-rw-r--r-- | src/server/timer.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/server/timer.h b/src/server/timer.h index f38806c..a96fa0e 100644 --- a/src/server/timer.h +++ b/src/server/timer.h @@ -5,7 +5,7 @@ namespace server { -/// a timer measures that intervals in seconds +/// a timer measures intervals in seconds /*! A timer class measures the time elapsed * between the last two calls to its mark() function. */ @@ -18,19 +18,20 @@ public: /// mark the current time as zero /*! Reset the timer, all subsequent calls too elapsed() will - * use now as a reference - * that must be timed. - */ + * use the current timestamp as reference + */ void mark(); /*! return the time elapsed since the last mark - * @see mark() - */ + * @see mark() + */ float elapsed(); /// suspend calling process for a number of seconds void sleep(float seconds); + /// TODO add inspectors for current timestamp and last mark + private: float timer_elapsed; struct timezone timer_tz; @@ -40,3 +41,4 @@ private: } // namespace server #endif // __INCLUDED_TIMER_H__ + |