acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_nanosecond.h
1//
2// Refactored/Merged by camilon on 2021-10-04 06:45 BRT <3ThomasBorregaardSorensen!![ THE ONE GOD ]
3// Created by camilo on 2020-11-16. <3ThomasBS_ [ THE ONE GOD ]
4//
5
6
7class CLASS_DECL_ACME nanosecond :
8 public duration
9{
10public:
11
12
13 using duration::duration;
14
15 nanosecond() : duration(e_raw, 0, 1) {}
16 nanosecond(const class ::time & time) : ::duration(duration) {}
17 template < prototype_integral INTEGRAL >
18 nanosecond(INTEGRAL integral) : duration(::integral_nanosecond(integral)) { }
19 template < prototype_floating FLOATING >
20 nanosecond(FLOATING floating) : duration(::floating_nanosecond(floating)) { }
21
22
23 bool done() const { return integral_nanosecond().m_i >= 1; }
24
25
26};
27
28
29//CLASS_DECL_ACME ::nanosecond first_nanosecond();
30CLASS_DECL_ACME ::nanosecond get_nanosecond();
31
32
33//inline ::duration duration::first()
34//{
35//
36// return _first_integral_nanosecond();
37//
38//}
39
40
Definition aaa_time.h:13