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
-
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