lokinet/llarp/util/types.hpp

23 lines
468 B
C++
Raw Normal View History

#pragma once
2018-11-19 22:45:37 +00:00
#include <cstdint>
#include <string>
2020-02-24 19:40:45 +00:00
#include <chrono>
2018-11-19 22:45:37 +00:00
using byte_t = uint8_t;
2018-11-19 22:45:37 +00:00
using llarp_proto_version_t = std::uint8_t;
2020-02-24 19:40:45 +00:00
namespace llarp
{
using Duration_t = std::chrono::milliseconds;
using namespace std::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;