@@ -7,6 +7,12 @@
#ifndef ut_h
#define ut_h
+
+#include <sys/types.h>
+#include <sys/time.h>
+#include <unistd.h>
#include "dprint.h"
@@ -227,4 +233,12 @@ inline static int string2hex(
return orig_len-len;
}
+inline static void sleep_us( unsigned int nusecs )
+{
+ struct timeval tval;
+ tval.tv_sec=nusecs/100000;
+ tval.tv_usec=nusecs%1000000;
+ select(0, NULL, NULL, NULL, &tval );
+}
#endif