diff options
Diffstat (limited to 'StdLib/LibC/Uefi')
-rw-r--r-- | StdLib/LibC/Uefi/select.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/StdLib/LibC/Uefi/select.c b/StdLib/LibC/Uefi/select.c index 8da03e65d0..830e011e0d 100644 --- a/StdLib/LibC/Uefi/select.c +++ b/StdLib/LibC/Uefi/select.c @@ -74,19 +74,14 @@ #define MAX_SLEEP_DELAY 0xfffffffe
-//
-// Name:
-// usleep
-//
-// Description:
-// Implement usleep(3) function.
-//
-// Arguments:
-// Microseconds to sleep.
-//
-// Returns:
-// 0
-//
+/** Sleep for the specified number of Microseconds.
+
+ Implements the usleep(3) function.
+
+ @param[in] Microseconds Number of microseconds to sleep.
+
+ @retval 0 Always returns zero.
+**/
int
usleep( useconds_t Microseconds )
{
@@ -98,6 +93,12 @@ usleep( useconds_t Microseconds ) return (0);
}
+unsigned int
+sleep( unsigned int Seconds )
+{
+ return (usleep( useconds_t(Seconds * 1000000) ));
+}
+
static int
selscan(
fd_mask **ibits,
|