diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-05-19 02:34:39 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-05-19 02:34:39 +0200 |
commit | 3be2ae868746f2fc09f69e667e18b838cef82be9 (patch) | |
tree | a7f299d03d6f04b8387e2aeaa5e8539998090fe1 /src/kelunit/time |
Initial commit with copying the unit lib
Diffstat (limited to 'src/kelunit/time')
-rw-r--r-- | src/kelunit/time/second.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/kelunit/time/second.h b/src/kelunit/time/second.h new file mode 100644 index 0000000..07145ca --- /dev/null +++ b/src/kelunit/time/second.h @@ -0,0 +1,15 @@ +#pragma once + +#include "../unit.h" + +namespace kelun { +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_base<unit_type::second,1>>; +} |