Skip to content

Commit

Permalink
pomelo: add note regarding timer granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatol Ulrich committed Nov 2, 2024
1 parent 3565155 commit f160115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/pomelo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ async fn kernel_entry() {
let clock = {
maitake::time::Clock::new(
// TODO(eliza): timer granularity chosen totally arbitrarily
// Anatol: the WASM app runs in a callback loop from request_animation_frame, whose
// max speed is capped at the display refresh rate -
// I guess 1ms granularity should therefore be plenty?
Duration::from_micros(1),
|| {
chrono::Utc::now()
Expand Down

0 comments on commit f160115

Please sign in to comment.