mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT_GEN_QELAPSEDTIMER_H
|
|
#define MIQT_QT_GEN_QELAPSEDTIMER_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QElapsedTimer;
|
|
#else
|
|
typedef struct QElapsedTimer QElapsedTimer;
|
|
#endif
|
|
|
|
void QElapsedTimer_new(QElapsedTimer** outptr_QElapsedTimer);
|
|
int QElapsedTimer_ClockType();
|
|
bool QElapsedTimer_IsMonotonic();
|
|
void QElapsedTimer_Start(QElapsedTimer* self);
|
|
long long QElapsedTimer_Restart(QElapsedTimer* self);
|
|
void QElapsedTimer_Invalidate(QElapsedTimer* self);
|
|
bool QElapsedTimer_IsValid(const QElapsedTimer* self);
|
|
long long QElapsedTimer_NsecsElapsed(const QElapsedTimer* self);
|
|
long long QElapsedTimer_Elapsed(const QElapsedTimer* self);
|
|
bool QElapsedTimer_HasExpired(const QElapsedTimer* self, long long timeout);
|
|
long long QElapsedTimer_MsecsSinceReference(const QElapsedTimer* self);
|
|
long long QElapsedTimer_MsecsTo(const QElapsedTimer* self, QElapsedTimer* other);
|
|
long long QElapsedTimer_SecsTo(const QElapsedTimer* self, QElapsedTimer* other);
|
|
bool QElapsedTimer_OperatorEqual(const QElapsedTimer* self, QElapsedTimer* other);
|
|
bool QElapsedTimer_OperatorNotEqual(const QElapsedTimer* self, QElapsedTimer* other);
|
|
void QElapsedTimer_Delete(QElapsedTimer* self, bool isSubclass);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|