Method ITcTask:GetCycleTime

Query of task cycle time in nanoseconds, i.e. time between "begin of task" and next "begin of task".

Syntax


virtual HRESULT TCOMAPI GetCycleTime(PULONG
pCycleTimeNS)=0;

Parameters

pCycleTimeNS: (type: PULONG) [out] the configured task cycle time in nanoseconds is stored in this parameter.

Return value

If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.

E_POINTER if the parameter pCnt = NULL.

Description

Sample30: Timing Measurement shows usage of this method.