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

Audit of timer functions for Windows compatibility #19

Open
jmtayloruk opened this issue Dec 15, 2020 · 0 comments
Open

Audit of timer functions for Windows compatibility #19

jmtayloruk opened this issue Dec 15, 2020 · 0 comments

Comments

@jmtayloruk
Copy link
Collaborator

On Windows, time.time() has dreadful granularity (defaults to 1/60s). This led to divide by zero errors when computing fps in optical_gater_server. I have worked around that by switching to time.perf_counter(), which is apparently the gold standard for cross-platform timing of this sort. But we should go through other uses of time.time() and decide whether to switch them over to time.perf_counter() as well

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