desktop: use a bit less CPU

This commit is contained in:
Andrew Tridgell 2011-10-09 20:41:03 +11:00
parent 5cf3e92a22
commit 8c8ad0cd55
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
@ -11,6 +12,9 @@ int main(void)
{
gettimeofday(&sketch_start_time, NULL);
setup();
while (true) loop();
while (true) {
loop();
usleep(10);
}
return 0;
}