Skip to content

Commit

Permalink
Add timestamp to LogMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
mbusy committed Dec 12, 2021
1 parent d64478d commit a2df689
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libqicore/qicore/logmessage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ struct LogMessage
unsigned int id = 0; // Unique message ID
qi::Clock::time_point date; // Steady clock timestamp
qi::SystemClock::time_point systemDate; // Wall clock timestamp

// Timestamp when the message has been posted
qi::os::timeval timestamp = qi::os::timeval(systemDate.time_since_epoch());
};
}

Expand Down

0 comments on commit a2df689

Please sign in to comment.