Skip to main content

set_time_adjustment

Function set_time_adjustment 

Source
pub fn set_time_adjustment(s2c_time_diff_us: i64, net_delay_us: i64)
Expand description

Update the server-to-client clock correction used by QOT push delay statistics.

Ref: FutuOpenD/Src/NNProtoCenter/Other/NNBiz_SvrTime.cpp:41-78 calls INNData_ProtoDelay::SetS2CTimeDiffAndNetDelay(nDiffTime_ms * 1000, nNetDelay_ms * 1000). DelayCalibrationRuntime supplies both values from the precise Platform server-time anchor and independent ICMP RTT/2. Before its first successful probe, startup may install a clock-only value with zero delay; probe failures preserve the last complete sample.