Lugdunum
0.1.0
include
lug
System
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
9
class
LUG_SYSTEM_API
Time
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
Time.inl
Export.hpp
LUG_SYSTEM_API
#define LUG_SYSTEM_API
Definition:
Export.hpp:11
lug::System::Time
Definition:
Time.hpp:9
lug
Definition:
Application.hpp:11
Generated by
1.8.13