Skip to main content

NRC_JobfileInsertTIMER(int line, double timeSec)

Insert TIMER instruction into the job file

Before calling this function, please call NRC_CreateJobfile(std::string jobname) or NRC_OpenJobfile(std::string jobname) to create or open a job file

Type

int=>Insert TIMER instruction into the job file

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
lineintThe line number where the instruction will be inserted, parameter range: 0 < line < (NRC_GetJobfileLineSum()+1)
timeSecdoubleDelay time in seconds, parameter range: timeSec > 0

Sample code

NRC_RunqueueInsertTIMER(1,1);
//Insert the TIMER instruction in the first line of the job file, delay 1s