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

Timestamp generation #27

Closed
mkusz opened this issue Jul 6, 2018 · 1 comment
Closed

Timestamp generation #27

mkusz opened this issue Jul 6, 2018 · 1 comment

Comments

@mkusz
Copy link

mkusz commented Jul 6, 2018

It would be nice to have some faster timestamp generation that one get from pure datetime.timestamp() or time.time(). It can be very useful for any logging, etc. in case of fast application (like load testing using locust.io)

@freach
Copy link
Owner

freach commented Jul 23, 2018

The time() implementation is already using straight C functions to create a timestamp. Depending on your OS it's basically create Python Float from gettimeofday. I'm afraid there is nothing to optimize here.

@freach freach closed this as completed Jul 23, 2018
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

2 participants