Skip to content

Ensure consistent nanosecond precision in log timestamps #64

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

Merged
merged 2 commits into from
May 23, 2024

Conversation

liyang8246
Copy link
Contributor

@liyang8246 liyang8246 commented May 22, 2024

Updated the time formatting to always display nanoseconds with three digits in the log output

Before

2024-05-22 22:52:08.540236200 +08:00: loop...
2024-05-22 22:52:09.539918200 +08:00: loop...
2024-05-22 22:52:09.540122 +08:00: loop...
2024-05-22 22:52:09.540406500 +08:00: loop...
2024-05-22 22:52:09.540730400 +08:00: loop...

After

2024-05-22 22:52:44.606: loop...
2024-05-22 22:52:44.607: loop...
2024-05-22 22:52:44.607: loop...
2024-05-22 22:52:44.608: loop...
2024-05-22 22:52:45.617: loop...

This is my first time trying a pull request. I'm not sure if I'm doing it right. QAQ

Updated the time formatting to always display nanoseconds with nine digits in the log output
Copy link
Contributor

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@andelf andelf merged commit 651ba0c into ch32-rs:main May 23, 2024
1 check passed
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.

2 participants