#include <timer.h>
Public Member Functions | |
Time (qint64 usecs) | |
Time (const Time &other) | |
bool | operator== (const Time &other) const |
bool | operator!= (const Time &other) const |
bool | operator< (const Time &other) const |
bool | operator> (const Time &other) const |
bool | operator<= (const Time &other) const |
bool | operator>= (const Time &other) const |
Time | since (const Time &other) const |
Find the amount time since some supposedly previous timestamp, or 0 if the 'previous' timestamp is actually later. | |
QString | toString () const |
Convert to standard ASCII date/time representation. | |
QDateTime | toQDateTime () const |
Convert to Qt's QDateTime class. | |
QByteArray | encode () const |
Static Public Member Functions | |
Time | fromString (const QString &str) |
Convert from standard ASCII date/time representations. | |
Time | fromQDateTime (const QDateTime &qdt) |
Convert from Qt's QDateTime class. | |
Time | decode (const QByteArray &data) |
Public Attributes | |
qint64 | usecs |
Microseconds since the Unix Epoch. | |
Friends | |
class | Timer |
Represents in a simple, easy-to-work-with 64-bit time format by counting microseconds since the Unix epoch. The current() method to check the system time supports time virtualization for protocol simulation purposes.
|
Convert from Qt's QDateTime class.
|
|
Convert from standard ASCII date/time representations.
|
|
Convert to Qt's QDateTime class.
|
|
Convert to standard ASCII date/time representation. Uses Qt's QDateTime formatting mechanism.
|