The TimeStamp class provides timestamp information with microsecond precision. 更多...
头: | #include <TimeStamp> |
qmake: | QT += serialbus |
Since: | Qt 5.8 |
TimeStamp (qint64 s = 0, qint64 usec = 0) | |
qint64 | microSeconds () const |
qint64 | seconds () const |
TimeStamp | fromMicroSeconds (qint64 usec ) |
The TimeStamp class provides timestamp information with microsecond precision.
构造 TimeStamp in seconds, s , and microseconds, usec .
注意: 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.
Returns the microseconds of the timestamp.
Returns the seconds of the timestamp.