diff options
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index b9d57ad..11f1402 100644 --- a/src/util.cc +++ b/src/util.cc @@ -82,3 +82,14 @@ void sleep_1_frame()    ts.tv_nsec = 1000000000L / 25L;	// 1000ms / 25    nanosleep(&ts, NULL);  } + +void sleep_0_2_frame() +{ +  // Sleep 1/25th of a second + +  struct timespec ts; + +  ts.tv_sec = 0; +  ts.tv_nsec = 8000000L;//1000000000L / 25L * 0.2;	// 1000ms / 25 +  nanosleep(&ts, NULL); +}  | 
