You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/util/time.hpp

24 lines
408 B
C++

#ifndef LLARP_TIME_HPP
#define LLARP_TIME_HPP
#include <util/types.hpp>
#include <nlohmann/json.hpp>
using namespace std::chrono_literals;
namespace llarp
{
/// get time right now as milliseconds, this is monotonic
llarp_time_t
time_now_ms();
std::ostream&
operator<<(std::ostream& out, const llarp_time_t& t);
nlohmann::json
to_json(const llarp_time_t& t);
} // namespace llarp
#endif