diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-25 10:10:51 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-25 10:10:51 +0200 |
commit | 488653602d0636a1fa5ef6e64cabb9b903dce42a (patch) | |
tree | b5d4bbffdf21017777f4c4d994b7b41a02e8fa5d /c++/time | |
parent | e3c73b2c8b33b43d53de6d2106b93a4343609e80 (diff) |
Renamed src folder to c++
Diffstat (limited to 'c++/time')
-rw-r--r-- | c++/time/second.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/c++/time/second.h b/c++/time/second.h new file mode 100644 index 0000000..6dca456 --- /dev/null +++ b/c++/time/second.h @@ -0,0 +1,15 @@ +#pragma once + +#include "../unit.h" + +namespace kel { +namespace unit_type { +struct second{ + static constexpr std::string_view name = "second"; + static constexpr std::string_view short_name = "s"; +}; +} + +template<typename S> +using second = unit<S,unit_component<unit_type::second,1>>; +} |