class TimeStamp#

The TimeStamp class provides timestamp information with microsecond precision. More

Synopsis#

Methods#

Static functions#

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#

__init__([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 fromMicroSeconds(usec)#
Parameters:

usec – int

Return type:

TimeStamp

Constructs a normalized TimeStamp from microseconds usec.

The created TimeStamp is normalized, i.e. microseconds greater 1000000 are converted to seconds.

microSeconds()#
Return type:

int

Returns the microseconds of the timestamp.

seconds()#
Return type:

int

Returns the seconds of the timestamp.