1# sleep.h 2 3 4## Overview 5 6The **sleep.h** file declares the sleep and yield interfaces in C. 7 8**File to include**: <ffrt/sleep.h> 9 10**Library**: libffrt.z.so 11 12**System capability**: SystemCapability.Resourceschedule.Ffrt.Core 13 14**Since**: 10 15 16**Related module**: [FFRT](_f_f_r_t.md) 17 18 19## Summary 20 21 22### Functions 23 24| Name| Description| 25| -------- | -------- | 26| FFRT_C_API int [ffrt_usleep](_f_f_r_t.md#ffrt_usleep) (uint64_t usec) | Sets the fixed sleep time. | 27| FFRT_C_API void [ffrt_yield](_f_f_r_t.md#ffrt_yield) (void) | Passes control to other tasks so that they can be executed. | 28