lokinet/llarp/util/time.hpp

24 lines
408 B
C++
Raw Normal View History

2018-10-08 11:56:40 +00:00
#ifndef LLARP_TIME_HPP
#define LLARP_TIME_HPP
#include <util/types.hpp>
#include <nlohmann/json.hpp>
2018-11-19 22:45:37 +00:00
2020-02-24 19:40:45 +00:00
using namespace std::chrono_literals;
2018-10-08 11:56:40 +00:00
namespace llarp
{
/// get time right now as milliseconds, this is monotonic
2018-11-19 22:45:37 +00:00
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);
2018-11-19 22:45:37 +00:00
} // namespace llarp
2018-10-08 11:56:40 +00:00
#endif