다음을 통해 공유


time_point::time_point 생성자

time_point 개체를 생성합니다.

time_point();
explicit time_point(const duration& Dur);
template<class Duration2>
    time_point(const time_point<clock, Duration2>& Tp);

매개 변수

  • Dur
    기간 개체입니다.

  • Tp
    time_point 개체

설명

첫 번째 생성자는 duration::zero 와 같은 duration 의 값으로 저장된 개체를 생성합니다.

두 번째 생성자는 Dur 와 같은 값으로 저장된 개체를 생성합니다. 이 is_convertible<Duration2, duration> holds true, holds false 하지 않으면, 두 번째 생성자는 오버 로드에 참여하지 않습니다. 자세한 내용은 <type_traits>을 참조하십시오.

세 번째 생성자는 Tp.time_since_epoch() 을 사용하여 duration 값을 초기화 합니다.

요구 사항

Header: chrono

네임 스페이스: std::chrono

참고 항목

참조

time_point 클래스

<chrono>

time_point::time_since_epoch 메서드

is_convertible 클래스