timer 模块实现问题 #6
yasarjames
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
os/src/timer.rs的实现存在比较大的问题,在默认的配置下CLOCK_FREQ=12500000,而MICRO_PER_SEC=1000000,而所有运算过程都采用usize整除,而MICRO_PER_SEC不整除CLOCK_FREQ,导致get_time_us函数返回值存在问题。Beta Was this translation helpful? Give feedback.
All reactions