lokinet/llarp/util/types.hpp
dr7ana 46ad8d4058 Clang format include sorting + CMake
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use
- shuffled around some cmake linking to simplify dependency graph
- superfluous files removed
2023-10-24 12:11:51 -07:00

26 lines
539 B
C++

#pragma once
#include <oxen/log/format.hpp>
#include <chrono>
#include <cstdint>
#include <string>
using byte_t = uint8_t;
using llarp_proto_version_t = std::uint8_t;
namespace llarp
{
using Duration_t = std::chrono::milliseconds;
using namespace std::literals;
using namespace oxen::log::literals;
/// convert to milliseconds
uint64_t
ToMS(Duration_t duration);
using DateClock_t = std::chrono::system_clock;
using TimePoint_t = DateClock_t::time_point;
} // namespace llarp
using llarp_time_t = llarp::Duration_t;