summaryrefslogtreecommitdiff
path: root/c++/time/second.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/time/second.hpp')
-rw-r--r--c++/time/second.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/c++/time/second.hpp b/c++/time/second.hpp
new file mode 100644
index 0000000..6dca456
--- /dev/null
+++ b/c++/time/second.hpp
@@ -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>>;
+}