Skip to main content

NRC_RunqueueInsertTIMER(double timeSec)

Insert TIMER instruction in the run queue

Before calling this function, please call NRC_CreateNoFlieRunqueue() to create a fileless run queue

Type

int=>Insert TIMER instruction in the run queue

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
timeSecdoubleDelay time in seconds, parameter range: timeSec > 0

Sample code

NRC_RunqueueInsertTIMER(1);
//Insert TIMER instruction in the run queue, delay 1s