Method ITcTask:GetCurrentDcTime

Querying the distributed clock time when the task cycle starts in nanoseconds since January 1, 2000.

Syntax

virtual HRESULT TCOMAPI GetCurrentDcTime(PLONGLONG 
pDcTime)=0;

Method ITcTask:GetCurrentDcTime 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 pDcTime = NULL.

Parameter

Name

Type

Description

pDcTime

PLONGLONG

[out] This parameter stores the distributed clock time at the beginning of the task cycle.

Sample30: Timing Measurement illustrates the use of this method.