Added some comments

This commit is contained in:
Pablo Rodriguez
2025-07-31 02:09:45 -04:00
parent 40b7639c66
commit ffe7731f10
7 changed files with 73 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ TimestampLog::TimestampLog(std::string_view description, std::ostream &os):
void TimestampLog::vlog(std::string_view fmt, std::format_args args) {
// Format message as "[123.4567] Name: User Message\n"
using namespace std::chrono;
auto now = high_resolution_clock::now();
auto timestamp = duration_cast<duration<float>>(now - mStartTime).count();