TimeStamp Class

(QCanBusFrame::TimeStamp)

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

Header: #include <TimeStamp>
qmake: QT += serialbus
Since: Qt 5.6

Public Functions

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

Detailed Description

The TimeStamp class provides timestamp information with microsecond precision.

Member Function Documentation

TimeStamp::TimeStamp(qint64 s = 0, qint64 usec = 0)

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

qint64 TimeStamp::microSeconds() const

Returns the microseconds of the timestamp.

See also TimeStamp::setMicroSeconds.

qint64 TimeStamp::seconds() const

Returns the seconds of the timestamp.

See also TimeStamp::setSeconds().

void TimeStamp::setMicroSeconds(qint64 usec)

Sets the microseconds in the timestamp type to usec.

See also TimeStamp::microSeconds.

void TimeStamp::setSeconds(qint64 s)

Sets the seconds in the timestamp type to s.

See also TimeStamp::seconds().

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