mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
24 lines
409 B
C++
24 lines
409 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
|