Method ITcTask:GetCurrentDcTime

Retrieve distributed clock time at task cycle start in nanoseconds since 1. January 2000

Syntax


virtual HRESULT TCOMAPI GetCurrentDcTime(PLONGLONG
pDcTime)=0;

Parameters

pDcTime: (type: PLONGLONG) [out] distributed clock time at task cycle start 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 pDcTime = NULL.

Description

Sample30: Timing Measurement shows usage of this method.