Lugdunum  0.1.0
Time.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <lug/System/Export.hpp>
5 
6 namespace lug {
7 namespace System {
8 
10 {
11 public:
12  Time() = default;
13  ~Time() = default;
14  Time(const Time& time);
15  Time(int64_t microseconds);
16 
17  int64_t getMicroseconds() const;
18 
19  template <typename T = float>
20  T getMilliseconds() const;
21 
22  template <typename T = float>
23  T getSeconds() const;
24 
25  static Time getCurrentTime();
26 
27 private:
28  int64_t _microseconds{0};
29 };
30 
31 #include <lug/System/Time.inl>
32 
33 } // System
34 } // lug
#define LUG_SYSTEM_API
Definition: Export.hpp:11