Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

TimeStamp Class

(QCanBusFrame::TimeStamp)

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

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

Public Functions

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

Static Public Members

TimeStamp fromMicroSeconds(qint64 usec)

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.

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

[static] 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.

qint64 TimeStamp::microSeconds() const

Returns the microseconds of the timestamp.

qint64 TimeStamp::seconds() const

Returns the seconds of the timestamp.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded