onlinedokumentation

KS_getAbsTime

The function KS_getAbsTime reads the absolute time (obsolete).

ATTENTION! THIS FUNCTION IS OBSOLETE!

C/C++
Error KS_getAbsTime(UInt64* pAbsTime);

Delphi
function KS_getAbsTime(pAbsTime: PUInt64): Error;

C#
int KS_getAbsTime(long* pAbsTime);

Parameters

pAbsTime (UInt64*)
Pointer where to store the time.

Return values

KSERROR_BAD_PARAMOne parameter is wrong.
KSERROR_FUNCTION_NOT_AVAILABLEThe chosen clock is not available.

Comments

The function reads the absolute time since 1601-01-01 00:00:00 in tenth of a microsecond.

This function is obsolete! You should use the function KS_getClock with the clock id KS_CLOCK_ABSOLUTE_TIME in new projects.

The function can be used on kernel-level, including real-time mode.

Example 1

KS_getAbsTime returns the same as KS_getMachineTime, except that the value is related to 1601-01-01 in GMT/UTC.

  UInt64 absTime;
  ksError = KS_getAbsTime(&absTime);
  if (ksError != KS_OK)
    outputErr(ksError, "KS_getAbsTime", "Unable to get absolute time.");

Example 2

See smp\ClockFunctionsLegacy.

See also