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). Rust currently has the login-derived AuthResult.svr_time_offset data source but not the C++ StandardPing one-way network-delay source, so callers pass net_delay_us = 0 until that ping path is implemented.