Files
mp-units/example/alternative_namespaces/time.h
T
Mateusz Pusz 2a56438f1c refactor: file tree with systems defninitions refactored to limit ODR issues
Relates to #32 as with this commit we created something like modules for derived quantities
2020-09-11 18:11:25 +02:00

22 lines
570 B
C++

#pragma once
#include <units/physical/si/si.h>
// named qtime due to conflict with time_t time(time_t*)
namespace q_time {
template<typename Rep = double>
using s = units::physical::si::time<units::physical::si::second, Rep>;
template<typename Rep = double>
using ms = units::physical::si::time<units::physical::si::millisecond, Rep>;
template<typename Rep = double>
using min = units::physical::si::time<units::physical::si::minute, Rep>;
template<typename Rep = double>
using h = units::physical::si::time<units::physical::si::hour, Rep>;
} // namespace time