You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let new_ns_per_tsc = unsafe{NS_PER_TSC}*(1.0 - (expected_err_at_next_calibration asf64) / unsafe{CALIBATE_INTERVAL_NS}asf64);// Calculate the number of nanoseconds for each new clock cycle.
*addr_of_mut!(BASE_NS) = base_ns - sys_ns;// Error in calculating benchmark nanoseconds.
158
158
*addr_of_mut!(NEXT_CALIBRATE_TSC) = base_tsc + ((CALIBATE_INTERVAL_NS - 1000)asf64 / new_ns_per_tsc)asu64;// Calculate the clock cycle for the next calibration.
0 commit comments