lokinet/llarp/util/time.hpp
Stephen Shelton 273270916e
The Great Wall of Blame
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.
2020-04-07 12:38:56 -06:00

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