Skip to content

Commit

Permalink
Change timestamp to milliseconds (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrChaika authored Sep 26, 2023
1 parent d8d9354 commit 5d22a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mqtt/MqttMessagingProtocolJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace sua {

uint64_t MqttMessagingProtocolJSON::epochTime() const
{
return std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
}

Command MqttMessagingProtocolJSON::readCommand(const std::string & input)
Expand Down

0 comments on commit 5d22a93

Please sign in to comment.