QGC.h 507 Bytes
Newer Older
1 2 3
#ifndef QGC_H
#define QGC_H

4
#include <QDateTime>
5 6 7 8 9
#include <QColor>

namespace QGC
{
    const QColor ColorCyan(55, 154, 195);
10

lm's avatar
lm committed
11
    static quint64 groundTimeUsecs()
12 13 14 15 16 17 18
    {
        QDateTime time = QDateTime::currentDateTime();
        time = time.toUTC();
        /* Return seconds and milliseconds, in milliseconds unit */
        quint64 microseconds = time.toTime_t() * static_cast<quint64>(1000000);
        return static_cast<quint64>(microseconds + (time.time().msec()*1000));
    }
19 20 21
}

#endif // QGC_H