Commit 35e2206
committed
Update semu_timer_clocksource() to use mult_frac()
Enhance the semu_timer_clocksource() function by utilizing the
mult_frac() function to improve the precision of converting time to
clock ticks. This update refines the calculations for converting time
derived from clock_gettime() and mach_absolute_time() into clock ticks.
This ensures that the time-to-clock-ticks conversion is more reliable
and precise, addressing potential precision issues effectively.1 parent 83185ab commit 35e2206
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments