Method ITcTask:GetCurrentSysTime
Querying the time when the task cycle starts at intervals of 100 nanoseconds since January 1, 1601 (UTC).
Syntax
virtual HRESULT TCOMAPI GetCurrentSysTime(PLONGLONG
pSysTime)=0;
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.
Parameter
Name | Type | Description |
|---|---|---|
pSysTime | PLONGLONG | [out] This parameter stores the current system time at the beginning of the task cycle. |
Sample30: Timing Measurement illustrates the use of this method.