Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-01-30 17:36:33 +0000
committerStijn Buys <ingar@osirion.org>2008-01-30 17:36:33 +0000
commit107ed6e6af67ff81708db22603f626a54c9cb198 (patch)
tree7aaf7f00a993b8979db02a2ae1c482c4f5d26e65 /src/server/timer.h
parentd584d29ac49182130d643c9221047e0acb5cfa01 (diff)
accomodate the new modules
Diffstat (limited to 'src/server/timer.h')
-rw-r--r--src/server/timer.h14
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__
+