added busy sleep (for testing purposes)

git-svn-id: svn://svn.berlios.de/openocd/trunk@1033 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-10-09 08:08:29 +00:00
parent a5806d21d2
commit d798871a99
3 changed files with 93 additions and 63 deletions

View File

@@ -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 */
}
}