2017-11-19 1 views
0

마이크로 초의 양을 포함하는 intmax_t을 적절한 std::chrono::duration 변수로 변환하려면 어떻게해야합니까? 당신이 정말로 intmax_t (이 예에서는 필요하지 않습니다) 담당자하려면 보다 구체적으로,마이크로 초의 양을 포함하는 intmax_t를 적절한 std :: chrono :: duration 변수로 변환하는 방법은 무엇입니까?

... 

intmax_t myUsInterval = 10000000LL; /* my desirable interval is 10s in us units */ 

std::chrono::duration<std::intmax_t, std::micro> timeout; /* I want to get timeout variable to use it in std::chrono library */ 

/* How can I: timeout <- myUsInterval ???????? */ 

답변

관련 문제