Просмотр исходного кода

Add SystemTime class prototype

Patrick-Christopher Mattulat 1 год назад
Родитель
Сommit
95b0ffb628
2 измененных файлов с 31 добавлено и 1 удалено
  1. 2 1
      include/ls-std/ls-std-time.hpp
  2. 29 0
      include/ls-std/time/system-time/SystemTime.hpp

+ 2 - 1
include/ls-std/ls-std-time.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-05-16
- * Changed:         2023-02-03
+ * Changed:         2023-03-07
  *
  * */
 
@@ -11,5 +11,6 @@
 #define LS_STD_LS_STD_TIME_HPP
 
 #include <ls-std/time/Date.hpp>
+#include <ls-std/time/system-time/SystemTime.hpp>
 
 #endif

+ 29 - 0
include/ls-std/time/system-time/SystemTime.hpp

@@ -0,0 +1,29 @@
+/*
+* Author:          Patrick-Christopher Mattulat
+* Company:         Lynar Studios
+* E-Mail:          webmaster@lynarstudios.com
+* Created:         2023-03-07
+* Changed:         2023-03-07
+*
+* */
+
+#ifndef LS_STD_SYSTEM_TIME_HPP
+#define LS_STD_SYSTEM_TIME_HPP
+
+#include <ls-std/core/Class.hpp>
+#include <ls-std/os/dynamic-goal.hpp>
+
+namespace ls::std::time
+{
+  class LS_STD_DYNAMIC_GOAL SystemTime : public ls::std::core::Class
+  {
+    public:
+
+      SystemTime();
+      ~SystemTime() noexcept override;
+
+      bool set(uint64_t _timeStamp);
+  };
+}
+
+#endif