acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_second.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. <3Tbs_!!
4//
5
6
7class CLASS_DECL_ACME second :
8 public duration
9{
10public:
11
12
13 using duration::duration;
14
15
16 second() : duration(e_raw, 1) {}
17 second(const class ::time & time) : ::duration(duration) {}
18 template < prototype_integral INTEGRAL >
19 second(INTEGRAL integral) : duration(::integral_second(integral)) { }
20 template < prototype_floating FLOATING >
21 second(FLOATING floating) : duration(::floating_second(floating)) { }
22
23 bool done() const { return integral_second().m_i >= 1; }
24
25
26};
27
28
29//inline ::second first_second() { return ::duration::first(); }
30inline ::second get_second() { return ::duration::now(); }
31
32
33
Definition aaa_time.h:13