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
返回时间戳的秒数。
© 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.