QCanBusFrame::TimeStamp Class
class QCanBusFrame::TimeStampTimeStamp 类提供微秒精度的时间戳信息。更多
公共函数
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)
以秒(s )和微秒(usec )为单位构建 TimeStamp。
注: TimeStamp 未进行归一化处理,即大于 1000000 的微秒不会转换为秒。
[static constexpr noexcept]
QCanBusFrame::TimeStamp TimeStamp::fromMicroSeconds(qint64 usec)
从微秒usec 构建归一化的TimeStamp 。
创建的TimeStamp 已归一化,即大于 1000000 的微秒被转换为秒。
[constexpr noexcept]
qint64 TimeStamp::microSeconds() const
返回时间戳的微秒数。
[constexpr noexcept]
qint64 TimeStamp::seconds() const
返回时间戳的秒数。
© 2025 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.