Method ITcTask:GetCycleCounter

Retrieve number of task cycles since task start.

Syntax


virtual HRESULT TCOMAPI GetCycleCounter(PULONGLONG
pCnt)=0;

Parameter

pCnt: (type: PULONGLONG) [out] the number of task cycles since the task was started 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.