acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_operator.h
1// Created by camilo on 2023-01-06 17:20 <3ThomasBorregaardSorensen!!
2#pragma once
3
4
5#include "acme/prototype/time/time/time.h"
6
7
8
9//template < prototype_integral INTEGRAL >
10//constexpr class time operator * (const ::time & millisecond, INTEGRAL integral)
11//{
12//
13// return {
14// (millisecond.m_i * integral) / 1'000ull,
15// ((millisecond.m_i * integral) % 1'000) * 1'000'000
16// };
17//
18//}
19//
20//
21//
22//template < prototype_integral INTEGRAL >
23//constexpr class time operator / (const ::integral_second & second, INTEGRAL integral)
24//{
25//
26// return {
27// second.m_i / integral,
28// ((second.m_i % integral) * 1'000'000'000ull) % integral
29// };
30//
31//}
32//
33//
34//template < prototype_integral INTEGRAL >
35//constexpr class time operator / (const ::integral_millisecond & millisecond, INTEGRAL integral)
36//{
37//
38// return {
39// (millisecond.m_i / integral) / 1'000ull,
40// ((millisecond.m_i % (integral * 1'000)) / integral)* 1'000'000
41// };
42//
43//}
44//
45//
46//template < prototype_integral INTEGRAL >
47//constexpr class time operator / (const ::integral_nanosecond & nanosecond, INTEGRAL integral)
48//{
49//
50// return {
51// (nanosecond.m_i / integral) / 1'000'000'000ull,
52// nanosecond.m_i / integral
53// };
54//
55//}
56//
57//
58//