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-08-15 16:07:58 +0000
committerStijn Buys <ingar@osirion.org>2008-08-15 16:07:58 +0000
commitfa589fafa7f094bc1bf07642b55f3d824814adba (patch)
treedc1b96685c4d92cd838551ee14ce02a7f81eb5bf /src/server/timer.h
parentb780874cf4ab23cf9e48aa23da2394169da24887 (diff)
moved Timer to core::
Diffstat (limited to 'src/server/timer.h')
-rw-r--r--src/server/timer.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/server/timer.h b/src/server/timer.h
deleted file mode 100644
index 496d698..0000000
--- a/src/server/timer.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef __INCLUDED_TIMER_H__
-#define __INCLUDED_TIMER_H__
-
-#include <sys/time.h>
-
-namespace server {
-
-/// a timer measures intervals in seconds
-/*! A timer class measures the time elapsed
-* between the last two calls to its mark() function.
-*/
-class Timer {
-public:
- /// Constructor
- Timer();
- /// Destructor
- ~Timer();
-
- /// mark the current time as zero
- /*! Reset the timer, all subsequent calls too elapsed() will
- * use the current timestamp as reference
- */
- void mark();
-
- /*! return the time elapsed since the last mark
- * @see mark()
- */
- float elapsed();
-
-private:
- float timer_elapsed;
- struct timezone timer_tz;
- struct timeval timer_tick;
-}; // class Timer
-
-} // namespace server
-
-#endif // __INCLUDED_TIMER_H__
-