acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa_generic.h
1
// Created by camilo on 2023-01-06 23:09 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
5
//#include "operator.h"
6
7
//
8
//namespace generic
9
//{
10
//
11
//
12
// namespace time
13
// {
14
//
15
//
16
// template < integral_time_unit INTEGRAL_TIME_UNIT >
17
// INTEGRAL_TIME_UNIT elapsed(const INTEGRAL_TIME_UNIT & integraltime)
18
// {
19
//
20
// return { ::time::now() - integraltime.m_i};
21
//
22
// }
23
//
24
//
25
// template < integral_time_unit INTEGRAL_TIME_UNIT >
26
// inline bool on_off(const INTEGRAL_TIME_UNIT & integraltime, const INTEGRAL_TIME_UNIT & period)
27
// {
28
//
29
// return (elapsed(integraltime).m_i % period.m_i) < (period.m_i / 2);
30
//
31
// }
32
//
33
//
34
// template < integral_time_unit INTEGRAL_TIME_UNIT >
35
// inline ::f64 period_rate(const INTEGRAL_TIME_UNIT & integraltime, const INTEGRAL_TIME_UNIT & period)
36
// {
37
//
38
// return (::f64)(elapsed(integraltime).m_i) / (::f64)(period.m_i);
39
//
40
// }
41
//
42
//
43
// } // namespace time
44
//
45
//
46
//} // namespace generic
47
//
48
//
prototype
time
integral
aaa_generic.h
Generated by
1.17.0