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

Cache the current time #84

Open
champo opened this issue Feb 19, 2012 · 0 comments
Open

Cache the current time #84

champo opened this issue Feb 19, 2012 · 0 comments

Comments

@champo
Copy link
Owner

champo commented Feb 19, 2012

Every time the current time is needed (and this happens several times per disk related system call), the system talks to the RTC and transforms the data it gets into something usable.
A simpler and more efficient approach would be to store the current time in seconds in a variable that is used by the kernel instead of using the RTC directly. Once every few ticks this variable would be updated with the correct time given by the RTC, say 2 o 3 times per second to make sure we're never more than one second of the real system time.

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

No branches or pull requests

1 participant