GetSystemTimeAdjustment |
VB声明 |
|
Declare Function GetSystemTimeAdjustment Lib "kernel32" Alias "GetSystemTimeAdjustment" (lpTimeAdjustment As Long, lpTimeIncrement As Long, lpTimeAdjustmentDisabled As Boolean) As Long |
|
说明 |
|
Win32可使内部系统时钟与一个外部的时钟信号源同步,方法是定时添加一个校准值。这个函数指定的所有时间都以100ns(0.1ms)为单位递增 |
|
返回值 |
|
Long,非零表示成功,零表示失败 |
|
参数表 |
|
参数 |
类型及说明 |
lpTimeAdjustment |
Long,添加到内部系统时钟的时间量 |
lpTimeIncrement |
Long,校准间隔时间。等于中断时钟时间 |
lpTimeAdjustmentDisabled |
Boolean,如时间调校功能关闭,则为TRUE |
示例 |
|
Dim lpTimeAdjustment&, lpTimeIncrement&, lpTimeAdjustmentDisabled& GetSystemTimeAdjustment lpTimeAdjustment, lpTimeIncrement, lpTimeAdjustmentDisabled Print "Time adjustment: " & lpTimeAdjustment & "Increment: " & lpTimeIncrement & "Adjustment Disabled: " & lpTimeAdjustmentDisabled |
Top |