-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add timestamp (wall time) information on the Event #4034
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the use-case (I made a comment on the issue).
|
||
@Override | ||
public TimeUnit getTimestampTimeUnit() { | ||
return TimeUnit.MILLISECONDS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? Can we just say in the javadocs that it is the current wall time in ms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I did originally. I even named the method getTimestampInMs
or sth like that. With 2 methods there is no doubt about what the units are and you are able to modify it as you please. Without that you can make easy mistakes (like I did when I've forgotten that timestamp in Brave is micro not milliseconds 🤷 ). WDYT @shakuzen ?
Co-authored-by: Jonatan Ivanov <[email protected]> Closes gh-4032
3bad57e
to
4f3543b
Compare
The things I changed in the PR:
|
fixes gh-4032