// Global useful functions
-long long getTimeMS();
-
int getClockRealTime(struct timespec *tp);
//#define WINDOWS_LEGACY
// -------------------------------------------------------------------------------------------------------------------
-long long getTimeMS()
-{
- struct timespec ts;
- clock_gettime(VOMP_LINUX_CLOCK, &ts);
- return ts.tv_sec * 1000 + ts.tv_nsec / 1000000LL;
-}
-
int getClockRealTime(struct timespec *tp) // FIXME - del if all goes chrono
{
return clock_gettime(CLOCK_REALTIME, tp);
#include "surfaceopengl.h"
#include "message.h"
#include "control.h"
+#include "util.h"
#include "osdopengl.h"
#include "surface.h"
#include "messagequeue.h"
#include "teletxt/txtfont.h"
+#include "util.h"
#include "osdopenvg.h"
else return a;
}
+i8 getTimeMS()
+{
+ struct timespec ts;
+ clock_gettime(VOMP_LINUX_CLOCK, &ts);
+ return ts.tv_sec * 1000 + ts.tv_nsec / 1000000LL;
+}
void MILLISLEEP(u4 a);
std::string tp2str(const std::chrono::time_point<std::chrono::system_clock>& tp);
void dump(void* data, int length);
+i8 getTimeMS();
//u8 htonll(u8 a);
//u8 ntohll(u8 a);