OGLplus  (0.59.0) a C++ wrapper for rendering APIs

time.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_UNITS_QTY_SI_TIME_HPP
10 #define EAGINE_UNITS_QTY_SI_TIME_HPP
11 
12 #include "../../quantity.hpp"
13 #include "../../unit/si/time.hpp"
14 
15 namespace eagine::units {
16 
17 template <typename T>
18 static inline auto milliseconds(const T& v) {
19  return quantity<millisecond>(v);
20 }
21 
22 template <typename T>
23 static inline auto seconds(const T& v) {
24  return quantity<second>(v);
25 }
26 
27 template <typename T>
28 static inline auto minutes(const T& v) {
29  return quantity<minute>(v);
30 }
31 
32 template <typename T>
33 static inline auto hours(const T& v) {
34  return quantity<hour>(v);
35 }
36 
37 template <typename T>
38 static inline auto days(const T& v) {
39  return quantity<day>(v);
40 }
41 
42 } // namespace eagine::units
43 
44 #endif // EAGINE_UNITS_QTY_SI_TIME_HPP

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).