From 8c8ad0cd55e024455694ecebee12caa0a5221fd3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 9 Oct 2011 20:41:03 +1100 Subject: [PATCH] desktop: use a bit less CPU --- libraries/Desktop/support/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/Desktop/support/main.cpp b/libraries/Desktop/support/main.cpp index 017b7d29fc..f8efc34ac7 100644 --- a/libraries/Desktop/support/main.cpp +++ b/libraries/Desktop/support/main.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -11,6 +12,9 @@ int main(void) { gettimeofday(&sketch_start_time, NULL); setup(); - while (true) loop(); + while (true) { + loop(); + usleep(10); + } return 0; }