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

fix currentTimeNanos to return nanos, not micros #302

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

IR0NSIGHT
Copy link
Collaborator

@IR0NSIGHT IR0NSIGHT commented Nov 7, 2023

tested locally with:

def main() = {
    var time = currentTimeNanos();
    var timeMillis = time / 1000000;
    println("time millis: " ++ show(timeMillis))
}

and checked returned millis at https://currentmillis.com/

fixes #301

@b-studios
Copy link
Collaborator

@marvinborner Maybe change to use JS nano API

@b-studios b-studios merged commit a609028 into master Nov 7, 2023
2 checks passed
@b-studios b-studios deleted the fix/301-currentNanos branch November 7, 2023 16:51
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 this pull request may close these issues.

getCurrentNanos() returns mikroseconds
2 participants