add get time ms helper

This commit is contained in:
2023-12-11 16:35:30 +01:00
parent 48fb5f0889
commit 1a036c2321
2 changed files with 13 additions and 1 deletions

View File

@@ -2,8 +2,13 @@
#include <solanaceae/contact/components.hpp>
#include <chrono>
#include <iostream>
uint64_t Message::getTimeMS(void) {
return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
}
Message3Registry* RegistryMessageModel::get(Contact3 c) {
if (_cr.valid(c) && !_cr.all_of<Contact::Components::TagBig>(c)) {
// TODO: loop upwards