-
Notifications
You must be signed in to change notification settings - Fork 659
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 log timestamp #455
base: master
Are you sure you want to change the base?
Add log timestamp #455
Conversation
there's a lot of whitespace changes unfortunately... |
Ah, my bad, VSCode auto-remove trailing whitespace on save... I'll revert the spaces. |
bbfa6bc
to
5929588
Compare
@@ -375,6 +375,16 @@ namespace Util { | |||
} | |||
} | |||
|
|||
inline | |||
std::string get_curr_datetime() |
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.
there's already a function for that, see get_date_string_ex()
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.
you can call that function inside this one
Maybe add a file option to this PR at the same time? It's fine and all with using | or >, >> but that breaks SIGINT options with ctrl+c. so you have to use |
yeah I would prefer the timestamps to be in a log file, not on the terminal |
Adds iso timestamps in front of relevant log messages to allow for more fine-grained benchmarking and monitoring.