aboutsummaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/system')
-rw-r--r--src/system/Clock.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/system/Clock.cpp b/src/system/Clock.cpp
new file mode 100644
index 0000000..3fdc781
--- /dev/null
+++ b/src/system/Clock.cpp
@@ -0,0 +1,15 @@
+#include "../../include/mglpp/system/Clock.hpp"
+
+namespace mgl {
+ Clock::Clock() {
+ mgl_clock_init(&clock);
+ }
+
+ double Clock::restart() {
+ return mgl_clock_restart(&clock);
+ }
+
+ double Clock::get_elapsed_time_seconds() {
+ return mgl_clock_get_elapsed_time_seconds(&clock);
+ }
+} \ No newline at end of file