Method ITcTask:GetCurrentSysTime

Retrieve time at task cycle start in 100 nanoseconds intervals since 1. January 1601 (UTC)

Syntax


virtual HRESULT TCOMAPI GetCurrentSysTime(PLONGLONG
pSysTime)=0;

Parameters

pSysTime: (type: PLONGLONG) [out] current system 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 pSysTime = NULL.

Description

Sample30: Timing Measurement shows usage of this method.