acme
Foundational cross-platform layer of the ca2 framework
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
12constexpr class time operator""_ηs(::u64 u) { return nanosecond_time(u); }
13
14
15// microsecond unit μs - greek mu
16constexpr class time operator""_μs(::u64 u) { return microsecond_time(u); }
17
18
19constexpr class time operator""_ms(::u64 u) { return millisecond_time(u); }
20
21
22constexpr class time operator""_s(::u64 u) { return second_time(u); }
23
24
25constexpr class time operator""_min(::u64 u) { return minute_time(u); }
26constexpr class time operator""_minute(::u64 u) { return minute_time(u); }
27constexpr class time operator""_minutes(::u64 u) { return minute_time(u); }
28
29
30constexpr class time operator""_h(::u64 u) { return hour_time(u); }
31constexpr class time operator""_hour(::u64 u) { return hour_time(u); }
32constexpr class time operator""_hours(::u64 u) { return hour_time(u); }
33
34
35constexpr class time operator""_day(::u64 u) { return day_time(u); }
36constexpr class time operator""_days(::u64 u) { return day_time(u); }
37
38
39
40
41// unit _nanosecond
42constexpr class time operator""_ηs(::f128 d) { return nanosecond_time(d); }
43
44
45// unit _microsecond
46constexpr class time operator""_μs(::f128 d) { return microsecond_time(d); }
47
48
49constexpr class time operator""_ms(::f128 d) { return millisecond_time(d); }
50
51
52constexpr class time operator""_s(::f128 d) { return second_time(d); }
53
54
55constexpr class time operator""_min(::f128 d) { return minute_time(d); }
56constexpr class time operator""_minute(::f128 d) { return minute_time(d); }
57constexpr class time operator""_minutes(::f128 d) { return minute_time(d); }
58
59
60constexpr class time operator""_h(::f128 d) { return hour_time(d); }
61constexpr class time operator""_hour(::f128 d) { return hour_time(d); }
62constexpr class time operator""_hours(::f128 d) { return hour_time(d); }
63
64
65constexpr class time operator""_day(::f128 d) { return day_time(d); }
66constexpr class time operator""_days(::f128 d) { return day_time(d); }
67
68
69
Definition aaa_time.h:13