-
Notifications
You must be signed in to change notification settings - Fork 216
relative time as timestamp #15
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
Comments
The timestamp is expressed as a relative time since epoch. So it's arguably the wrong type but not necessarily. |
So, we expect everyone to write:
Whenever they need a timestamp? That seems less than ideal. |
|
But I agree that |
Yeah that should work. |
Also, note that you don't have to specify anything if you want now to be the timestamp in the message. Messages will have now as the timestamp by default so you should only specify one if you want to override it (e.g. you want the timestamp to be something that comes out of the message's contents or something like that). |
@mfontanini, You mean adding the overload or the code snipped I posted? |
Yep, I was referring to that comment. |
Sorry, I meant your code snippet :) |
I mean, adding the overload. Sorry, for the spam! |
See PR#128. |
The message timestamp is expressed as a relative time duration (
std::chrono::milliseconds
) here.That seems like the wrong type, it really should be a
time_point
, right?The text was updated successfully, but these errors were encountered: