blob: 0d171038d98c298393ecace1acf1b9bdafc5ac28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include <chrono>
namespace time_units {
template<typename repr, typename ratio = std::ratio<1>>
using duration = std::chrono::duration<repr, ratio>;
using secs = duration<float>;
using ms = duration<float, std::milli>;
using us = duration<float, std::micro>;
using ns = duration<float, std::nano>;
} // ns time_units
|