onlinedokumentation

KS_calibrateMachineTime

The function KS_calibrateMachineTime calibrates the system's hardware clocks (obsolete).

ATTENTION! THIS FUNCTION IS OBSOLETE!

C/C++
Error KS_calibrateMachineTime(uint* pFrequency, int flags);

Delphi
function KS_calibrateMachineTime(pFrequency: PUInt; flags: int): Error;

C#
int KS_calibrateMachineTime(int* pFrequency, int flags);

Parameters

pFrequency (uint*)
Pointer to a 32 bit value where to store the cpu frequency.

flags (int)
Flags.

KSF_USE_GIVEN_FREQUse given frequency value in kHz instead of calibrating.

Return values

KSERROR_BAD_PARAMOne parameter is wrong.

Comments

The frequencies of all hardware clocks are automatically calibrated when the driver is first opened. So, don't use this function anymore!

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

Example 1

In the following example ….

...
int ksError = KS_calibrateMachineTime(pFrequency, flags);
... // error handling

...

Example 2

See also