summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authordeva <deva>2005-09-20 19:39:49 +0000
committerdeva <deva>2005-09-20 19:39:49 +0000
commit48b768db44cb9e00adfead71b973074685cec417 (patch)
treee606f6f93b5fee42335b6f4f3cfaf7b3dc487cae /src/util.cc
parent5298cdacd41efbf2ffd0282b14e401734b31d90a (diff)
*** empty log message ***R0_2_8
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc11
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);
+}