Added some comments
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user