+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 199309L
+#endif
+
#include <stdbool.h>
#include <stdio.h> // TODO remove
#include <time.h>
static int frames = 0;
static bool meteringEnabled = false;
+
+
void initPerformanceMetering() {
if (clock_gettime(CLOCK_MONOTONIC, &lastDisplayTime) != 0) {
logWarning("Clock read failed, performance metering unavailable");