Skip to content

New function timestamp_u64 #316

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

plrigaux
Copy link

Hello,

This is a great crate, but I need a function that I want to share.

I created the function pub fn timestamp_u64(&self) -> Result on JournalRef struct. It the same than the timestamp, but it gives a direct access to the realtime_usec u64 value.

I also made a test to ensure that goth functions "timestamp_u64" and "timestamp" return the same.

Thank you

PS
Without this function I can still get the u64 value with the help of workarounds ;)

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.

1 participant