IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

TimeStamp Class

The TimeStamp class provides timestamp information with microsecond precision.

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

TimeStamp Class

  • Header: TimeStamp

  • Since: Qt 5.8

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS SerialBus)

    target_link_libraries(mytarget PRIVATE Qt6::SerialBus)

  • qmake: QT += serialbus

Detailed Description

 

Member Function Documentation

 

[constexpr] TimeStamp::TimeStamp(qint64 s = 0, qint64 usec = 0)

Constructs a TimeStamp in seconds, s, and microseconds, usec.

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

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

[constexpr] qint64 TimeStamp::microSeconds() const

Returns the microseconds of the timestamp.

[constexpr] qint64 TimeStamp::seconds() const

Returns the seconds of the timestamp.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+