Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue for experimental "time" feature #2

Open
taiki-e opened this issue Mar 22, 2023 · 0 comments
Open

Tracking issue for experimental "time" feature #2

taiki-e opened this issue Mar 22, 2023 · 0 comments

Comments

@taiki-e
Copy link
Owner

taiki-e commented Mar 22, 2023

This issue tracks the experimental "time" feature.

Enable semihosting::experimental::time.

Open issues

  • now currently always fails on MIPS. AFAIK, UHI doesn't provide any time-related features.

    pub fn now() -> Self {
    // TODO: this always fails on MIPS/MIPS64
    Self(time::SystemTime::now().unwrap())
    }

  • ARM and RISC-V's SystemTime implementation will likely be affected by the Y2038 on 32-bit systems.

  • Currently, only SystemTime is implemented. ARM/RISC-V semihosting seems to provide the functionality needed to implement Instant, but it will likely be more complex than SystemTime.

TODO: write more on open issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant