On this page
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().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
 https://doc.qt.io/archives/qt-5.6/qcanbusframe-timestamp.html