Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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__
+