acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
unit.h
1
//
2
// _unit.h
3
// acme
4
//
5
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 15/10/21 08:54 BRT
6
// Copyright (c) 2021 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
7
//
8
#pragma once
9
10
11
// nanosecond unit ηs - greek eta - greek etha
12
constexpr
class
time
operator
""
_ηs(::u64 u) {
return
nanosecond_time(u); }
13
14
15
// microsecond unit μs - greek mu
16
constexpr
class
time
operator
""
_μs(::u64 u) {
return
microsecond_time(u); }
17
18
19
constexpr
class
time
operator
""
_ms(::u64 u) {
return
millisecond_time(u); }
20
21
22
constexpr
class
time
operator
""
_s(::u64 u) {
return
second_time(u); }
23
24
25
constexpr
class
time
operator
""
_min(::u64 u) {
return
minute_time(u); }
26
constexpr
class
time
operator
""
_minute(::u64 u) {
return
minute_time(u); }
27
constexpr
class
time
operator
""
_minutes(::u64 u) {
return
minute_time(u); }
28
29
30
constexpr
class
time
operator
""
_h(::u64 u) {
return
hour_time(u); }
31
constexpr
class
time
operator
""
_hour(::u64 u) {
return
hour_time(u); }
32
constexpr
class
time
operator
""
_hours(::u64 u) {
return
hour_time(u); }
33
34
35
constexpr
class
time
operator
""
_day(::u64 u) {
return
day_time(u); }
36
constexpr
class
time
operator
""
_days(::u64 u) {
return
day_time(u); }
37
38
39
40
41
// unit _nanosecond
42
constexpr
class
time
operator
""
_ηs(::f128 d) {
return
nanosecond_time(d); }
43
44
45
// unit _microsecond
46
constexpr
class
time
operator
""
_μs(::f128 d) {
return
microsecond_time(d); }
47
48
49
constexpr
class
time
operator
""
_ms(::f128 d) {
return
millisecond_time(d); }
50
51
52
constexpr
class
time
operator
""
_s(::f128 d) {
return
second_time(d); }
53
54
55
constexpr
class
time
operator
""
_min(::f128 d) {
return
minute_time(d); }
56
constexpr
class
time
operator
""
_minute(::f128 d) {
return
minute_time(d); }
57
constexpr
class
time
operator
""
_minutes(::f128 d) {
return
minute_time(d); }
58
59
60
constexpr
class
time
operator
""
_h(::f128 d) {
return
hour_time(d); }
61
constexpr
class
time
operator
""
_hour(::f128 d) {
return
hour_time(d); }
62
constexpr
class
time
operator
""
_hours(::f128 d) {
return
hour_time(d); }
63
64
65
constexpr
class
time
operator
""
_day(::f128 d) {
return
day_time(d); }
66
constexpr
class
time
operator
""
_days(::f128 d) {
return
day_time(d); }
67
68
69
time
Definition
aaa_time.h:13
prototype
time
time
unit.h
Generated by
1.17.0