Files
mp-units/example/alternative_namespaces/time.h
Andy Little 6b7e5893d2 examples, alternative namespaces : Part2 of put alternative namespace definitions in local headers.
examples, clcpp_response,alternative_namespaces::clcpp_response : use fmt functions for showing precision of quantities
examples, alternative namespaces : combined the alternative namespace quantity typedefs in header files.
examples, alternative namespaces : add simple timer example
2020-03-21 18:23:05 +01:00

22 lines
492 B
C++

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