timer.h

Overview

The timer.h file declares the timer interfaces in C.

System capability: SystemCapability.Resourceschedule.Ffrt.Core

Since: 12

Related module: FFRT

Summary

Functions

Name Description
FFRT_C_API ffrt_timer_tffrt_timer_start (ffrt_qos_t qos, uint64_t timeout, void* data, ffrt_timer_cb cb, bool repeat) Starts the timer.
FFRT_C_API int ffrt_timer_stop (ffrt_qos_t qos, ffrt_timer_t handle) Stops the timer.