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_FREQ | Use given frequency value in kHz instead of calibrating. |
Return values
KSERROR_BAD_PARAM | One 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
KS_getSystemTicks, KS_getSystemTime, KS_getMachineTime, KS_getAbsTime, KS_getClock, KS_getClockSource, KS_setClockSource, KS_microDelay, KS_convertClock
Contained in: Clock Module
As part of Kithara »RealTime Suite«
Available since: version 2.00
Build date: 2013-04-17