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

Wrong time compute #23

Open
louisquentinjoucla opened this issue Jun 27, 2022 · 1 comment · May be fixed by #22
Open

Wrong time compute #23

louisquentinjoucla opened this issue Jun 27, 2022 · 1 comment · May be fixed by #22

Comments

@louisquentinjoucla
Copy link
Contributor

👋 ,
To compute the timestamp (in microseconds) we use:

time.time_ns() / 1000  if "time_ns" in time.__dict__ else time.time() * 100000

While the first one does the right conversion, the other one does not as time.time() gives time as second. So we need 10^6 and not 10^5

@mhansen
Copy link
Owner

mhansen commented Jun 27, 2022 via email

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

Successfully merging a pull request may close this issue.

2 participants