summaryrefslogtreecommitdiffstats
path: root/src/ingen/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ingen/main.cpp')
-rw-r--r--src/ingen/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp
index 4fd477d2..4e7ba923 100644
--- a/src/ingen/main.cpp
+++ b/src/ingen/main.cpp
@@ -17,7 +17,6 @@
#include <signal.h>
#include <stdlib.h>
-#include <time.h>
#include <iostream>
#include <string>
@@ -27,6 +26,7 @@
#include <glibmm/convert.h>
#include <glibmm/miscutils.h>
#include <glibmm/thread.h>
+#include <glibmm/timer.h>
#include "raul/Configuration.hpp"
#include "raul/Path.hpp"
@@ -54,8 +54,6 @@ using namespace std;
using namespace Raul;
using namespace Ingen;
-static const timespec main_rate = { 0, 125000000 }; // 1/8 second
-
Ingen::Shared::World* world = NULL;
void
@@ -236,7 +234,7 @@ main(int argc, char** argv)
// Run engine main loop until interrupt
while (world->local_engine()->main_iteration()) {
- nanosleep(&main_rate, NULL);
+ Glib::usleep(125000); // 1/8 second
}
info << "Finished main loop" << endl;
}