Skip to content

Commit

Permalink
Fix send timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Jun 14, 2024
1 parent 90f22e3 commit 8ade3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libnetwrk/net/core/shared/shared_comp_message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ namespace libnetwrk {

if (send_message->serialized_head.empty()) {
send_message->message.head.send_timestamp =
std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();

// Pre process message data
if (m_context.cb_pre_process_message) {
Expand Down

0 comments on commit 8ade3a3

Please sign in to comment.