acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa_microsecond.h
1
//
2
// Created by camilo on 2021-10-0512:35 BRT <3ThomasBorregaardSorensen!![ THE ONE GOD ]
3
//
4
#pragma once
5
6
//
7
//class CLASS_DECL_ACME floating_microsecond_t :
8
// public floating_microsecond
9
//{
10
//public:
11
//
12
//
13
// using BASE_TYPE = floating_microsecond;
14
//
15
//
16
// constexpr floating_microsecond_t(floating_microsecond microsecond = {}) : floating_microsecond(microsecond) {}
17
//
18
//
19
// integral_second integral_seconds() const { return integral_second((::i64)(m_f64 / 1'000'000.0)); }
20
// integral_nanosecond integral_nanoseconds() const { return integral_nanosecond((::i64)(fmod(m_f64, 1'000'000.0) * 1'000.0)); }
21
//
22
//
23
//};
24
//
25
//
26
//using floating_microsecond = floating_time < floating_microsecond_t >;
27
28
//
29
//constexpr floating_microsecond operator""_us(::f128 d) { return (floating_microsecond)d; }
30
//constexpr floating_microsecond operator""_μs(::f128 d) { return (floating_microsecond)d; }
31
32
33
inline
floating_microsecond get_floating_microsecond() {
return
floating_microsecond(get_floating_nanosecond().m_f64 / 1'000.0); }
34
35
36
template
< >
37
inline
floating_microsecond now<floating_microsecond>()
38
{
39
40
return
get_floating_microsecond();
41
42
}
43
44
45
prototype
time
floating
aaa_microsecond.h
Generated by
1.17.0