You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef QGC_H
|
|
|
|
#define QGC_H
|
|
|
|
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QColor>
|
|
|
|
|
|
|
|
namespace QGC
|
|
|
|
{
|
|
|
|
const QColor ColorCyan(55, 154, 195);
|
|
|
|
|
|
|
|
static quint64 groundTimeUsecs()
|
|
|
|
{
|
|
|
|
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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // QGC_H
|