
#include <glib/gtimer.h>
#include <glib.h>
#include <stdio.h>

int main (int argc, const char* argv[]) {
     g_thread_init(NULL);
     GTimer *foo = g_timer_new();

     gdouble el;
     gdouble oldel;
     oldel = g_timer_elapsed(foo, NULL);
     while (TRUE) {
          el = g_timer_elapsed(foo, NULL);
          if (el > oldel+1) {
               g_debug("%f", el);
               oldel = el;
          }
     }
}
