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
Update get_time_info() to use mult_frac() for precise time calculations
Refactor the get_time_info() function to use the newly added
mult_frac() function for calculations involving time conversions. This
change improves precision and mitigates the risk of overflow in the
following areas:
- Converte the computation of nanoseconds from mach_absolute_time()
using the timebase information.
- Update the calculation of nanoseconds from clock() in low-resolution
timer mode.
These updates make the time calculations in get_time_info() more robust
and reliable by leveraging the precise arithmetic capabilities of
mult_frac(). This change enhances the overall accuracy of time-related
computations in the code.
0 commit comments