acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_microsecond.h
1//
2// Recreated by camilo on 2021-10-05 13:07 BRT <3ThomasBorregaardSorensen!![ THE ONE GOD ]
3// Refactored/Merged by camilon on 2021-10-04 0:45 BRT <3ThomasBorregaardSorensen!![ THE ONE GOD ]
4// Created by camilo on 2020-11-16. <3TBS_ [ THE ONLY ] [ THE GOD ] [ THE MAN ]
5//
6#pragma once
7
8
9//class CLASS_DECL_ACME integral_microsecond_t :
10// public integral_microsecond
11//{
12//public:
13//
14//
15// using BASE_TYPE = integral_microsecond;
16//
17//
18// constexpr integral_microsecond_t(integral_microsecond microsecond = {}) : integral_microsecond(microsecond) {}
19//
20//
21// integral_second seconds() const { return integral_second(m_i / 1'000'000); }
22// integral_nanosecond nanoseconds() const { return integral_nanosecond((m_i % 1'000'000) * 1'000); }
23// integral_millisecond total_milliseconds() const { return integral_millisecond(m_i / 1'000); }
24//
25//
26// //operator class ::time const () { return total_milliseconds().m_i / 1'000.0; }
27//
28//
29//};
30//
31//
32//using integral_microsecond = integral_time < integral_microsecond_t >;
33//
34
35
36template < >
37inline integral_microsecond now<integral_microsecond>()
38{
39
40 return get_integral_microsecond();
41
42}
43
44
45
46
47
48
49
50
51