diff options
author | deva <deva> | 2005-09-20 19:39:49 +0000 |
---|---|---|
committer | deva <deva> | 2005-09-20 19:39:49 +0000 |
commit | 48b768db44cb9e00adfead71b973074685cec417 (patch) | |
tree | e606f6f93b5fee42335b6f4f3cfaf7b3dc487cae /src/util.cc | |
parent | 5298cdacd41efbf2ffd0282b14e401734b31d90a (diff) |
*** empty log message ***R0_2_8
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); +} |