acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaaa_millisecond.h
1// Refactored/Merged by camilon on 2021-10-04 06:45 BRT <3ThomasBorregaardSorensen!![ THE ONE GOD ]
2#pragma once
3
4
5class CLASS_DECL_ACME millisecond :
6 public time
7{
8public:
9
10
11 using timeclass ::time;
12
13 millisecond() : time(e_raw, 0, 1'000'000) {}
14 millisecond(const class time & time) : class ::time(time) {}
15 template < prototype_integral INTEGRAL >
16 millisecond(INTEGRAL integral) : time(::integral_millisecond(integral)) { }
17 template < prototype_floating FLOATING >
18 millisecond(FLOATING floating) : time(::floating_millisecond(floating)) { }
19
20
21 bool done() const { return integral_millisecond().m_i >= 1; }
22
23
24};
25
26
27//inline class ::time first_class ::time() { return class ::time::first(); }
28inline ::millisecond get_millisecond() { return class ::time::now(); }
29
30