TimeStamp#
The TimeStamp class provides timestamp information with microsecond precision. More…
Synopsis#
Functions#
def
microSeconds()def
seconds()
Static functions#
def
fromMicroSeconds(usec)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
- class PySide6.QtSerialBus.QCanBusFrame.TimeStamp([s=0[, usec=0]])#
- Parameters:
s – int
usec – int
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 PySide6.QtSerialBus.QCanBusFrame.TimeStamp.fromMicroSeconds(usec)#
- Parameters:
usec – int
- Return type:
Constructs a normalized TimeStamp from microseconds usec.
The created TimeStamp is normalized, i.e. microseconds greater 1000000 are converted to seconds.
- PySide6.QtSerialBus.QCanBusFrame.TimeStamp.microSeconds()#
- Return type:
int
Returns the microseconds of the timestamp.
- PySide6.QtSerialBus.QCanBusFrame.TimeStamp.seconds()#
- Return type:
int
Returns the seconds of the timestamp.