Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

15.1.78. usleep()

Prototype

int usleep (unsigned int us)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<unistd.h>

Description

The usleep() function blocks until at least us microseconds have elapsed.

Return

The usleep() function returns zero on success, or –1 otherwise. If an error occurs, errno is set to indicate the cause. The current implementation always succeeds.