QCanBusFrame::TimeStamp Class

class QCanBusFrame::TimeStamp

The TimeStamp class provides timestamp information with microsecond precision. More...

Public Functions

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

Static Public Members

QCanBusFrame::TimeStamp fromMicroSeconds(qint64 usec)

Detailed Description

Member Function Documentation

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

Constructs a TimeStamp in seconds, s, and microseconds, usec.

Note: The TimeStamp is not normalized, i.e. microseconds greater 1000000 are not converted to seconds.

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

Constructs a normalized TimeStamp from microseconds usec.

The created TimeStamp is normalized, i.e. microseconds greater 1000000 are converted to seconds.

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

Returns the microseconds of the timestamp.

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

Returns the seconds of the timestamp.

© 2024 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.