mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
273270916e
This commit reflects changes to clang-format rules. Unfortunately, these rule changes create a massive change to the codebase, which causes an apparent rewrite of git history. Git blame's --ignore-rev flag can be used to ignore this commit when attempting to `git blame` some code.
24 lines
408 B
C++
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
|