Method ITcTask:GetCycleCounter

Querying the number of task cycles since task start.

Syntax

virtual HRESULT TCOMAPI GetCycleCounter(PULONGLONG 
pCnt)=0;

Method ITcTask:GetCycleCounter 1: 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.

Parameter

Name

Type

Description

pCnt

PULONGLONG

[out] The number of task cycles since the task was started is stored in this parameter.

Sample30: Timing Measurement illustrates the use of this method.