aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/time.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/base/time.hpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/base/time.hpp b/src/base/time.hpp
index 229ac3e1..9e9eac20 100644
--- a/src/base/time.hpp
+++ b/src/base/time.hpp
@@ -27,11 +27,27 @@
namespace usdx
{
+ /**
+ * Simple static-only wrapper class to get a time. This time does not need
+ * to correspond to the real clock. It should only be a changing number,
+ * that change at the same speed like the real clock. The current
+ * implementation uses SDL and returns the milliseconds since initialization
+ * of the library.
+ */
class Time
{
- public:
+ protected:
+ /**
+ * Protected constructor. This class currently contains only static
+ methods. So there should no need to create an instance of it.
+ */
Time(void);
- float get_time();
+
+ public:
+ /**
+ * Returns the current "time" as milliseconds.
+ */
+ static float get_time();
};
};