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

Support unix time in ms in rhai scripts #5182

Closed
shaikatzz opened this issue May 16, 2024 · 0 comments · Fixed by #5181
Closed

Support unix time in ms in rhai scripts #5182

shaikatzz opened this issue May 16, 2024 · 0 comments · Fixed by #5181

Comments

@shaikatzz
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We would like to measure precisie timings using the coprocessor, but it's currently impossible since the only available timing function is unix_now which returns seconds since epoch.

Describe the solution you'd like
a new function unix_ms_now that returns exact ms of current time.

@garypen garypen changed the title Support unix time in ms in rhai sciprts Support unix time in ms in rhai scripts May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants