diff --git a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp index a525a43..3b0ca29 100644 --- a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp +++ b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp @@ -1,6 +1,7 @@ #include "./sha1_ngcft1.hpp" #include +#include #include #include @@ -1280,7 +1281,7 @@ bool SHA1_NGCFT1::onEvent(const Events::NGCFT1_recv_message& e) { return false; // return true? } - uint64_t ts = Message::getTimeMS(); + uint64_t ts = getTimeMS(); const auto c = _tcm.getContactGroupPeer(e.group_number, e.peer_number); _tox_peer_to_contact[combine_ids(e.group_number, e.peer_number)] = c; // workaround @@ -1355,7 +1356,7 @@ bool SHA1_NGCFT1::sendFilePath(const Contact3 c, std::string_view file_name, std } // get current time unix epoch utc - uint64_t ts = Message::getTimeMS(); + uint64_t ts = getTimeMS(); _mfb.newFromFile( file_name, file_path, diff --git a/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp b/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp index 2498883..421d821 100644 --- a/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp +++ b/solanaceae/ngc_hs2/ngc_hs2_rizzler.cpp @@ -13,6 +13,7 @@ #include #include +#include #include @@ -127,7 +128,7 @@ float NGCHS2Rizzler::iterate(float delta) { const auto [group_number, peer_number] = c.get(); // now in sec - const uint64_t ts_now = Message::getTimeMS()/1000; + const uint64_t ts_now = getTimeMS()/1000; const uint64_t ts_start = ts_now; const uint64_t ts_end = ts_now-(60*60*48); @@ -194,7 +195,7 @@ void NGCHS2Rizzler::handleMsgPack(Contact3Handle sync_by_c, const std::vector