이 페이지에서

QCanBusFrame::TimeStamp Class

class QCanBusFrame::TimeStamp

TimeStamp 클래스는 마이크로초 단위의 정밀도를 가진 타임스탬프 정보를 제공합니다. 더 보기...

공개 함수

TimeStamp(qint64 s = 0, qint64 usec = 0)
qint64 microSeconds() const
qint64 seconds() const

정적 공용 멤버

QCanBusFrame::TimeStamp fromMicroSeconds(qint64 usec)

상세 설명

멤버 함수 설명

[constexpr noexcept] TimeStamp::TimeStamp(qint64 s = 0, qint64 usec = 0)

초(seconds, s)와 마이크로초(microseconds, usec) 단위로 TimeStamp 객체를 생성합니다.

참고: 타임스탬프는 정규화되지 않습니다. 즉, 1,000,000을 초과하는 마이크로초는 초로 변환되지 않습니다.

[static constexpr noexcept] QCanBusFrame::TimeStamp TimeStamp::fromMicroSeconds(qint64 usec)

마이크로초 값 usec 를 바탕으로 정규화된 TimeStamp 를 생성합니다.

생성된 TimeStamp 는 정규화된 값입니다. 즉, 1,000,000을 초과하는 마이크로초는 초로 변환됩니다.

[constexpr noexcept] qint64 TimeStamp::microSeconds() const

타임스탬프의 마이크로초 값을 반환합니다.

[constexpr noexcept] qint64 TimeStamp::seconds() const

타임스탬프의 초를 반환합니다.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.