diff options
Diffstat (limited to 'src/helper/log.c')
-rw-r--r-- | src/helper/log.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/helper/log.c b/src/helper/log.c index e5f6d3d6..f7b2fc96 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -412,3 +412,14 @@ void alive_sleep(int ms) keep_alive(); } } + + +void busy_sleep(int ms) +{ + long long then; + then=timeval_ms(); + while ((timeval_ms()-then)<ms) + { + /* busy wait */ + } +} |