summaryrefslogtreecommitdiff
path: root/c++/time/second.hpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-29 14:18:30 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-29 14:18:30 +0200
commit700cde2d499742160deb361f42b7e861ae1db8ed (patch)
treeba796243a94578f9c2105080fa19040a341c4482 /c++/time/second.hpp
parentfb7dd1c9185da30aed8645c084be0722e061a867 (diff)
Renaming to new standard
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>>;
+}