Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/timer.h')
-rw-r--r--src/core/timer.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/timer.h b/src/core/timer.h
index b878875..5157811 100644
--- a/src/core/timer.h
+++ b/src/core/timer.h
@@ -1,7 +1,7 @@
/*
core/timer.h
- This file is part of the Osirion project and is distributed under
- the terms and conditions of the GNU General Public License version 2
+ This file is part of the Osirion project and is distributed under
+ the terms and conditions of the GNU General Public License version 2
*/
#ifndef __INCLUDED_CORE_TIMER_H__
@@ -9,13 +9,15 @@
#include <sys/time.h>
-namespace core {
+namespace core
+{
/// a timer measures intervals in seconds
/*! A timer class measures the time elapsed
* between the last two calls to its mark() function.
*/
-class Timer {
+class Timer
+{
public:
/// Constructor
Timer();
@@ -25,7 +27,7 @@ public:
/// 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, in seconds