2021-03-09 22:24:35 +00:00
|
|
|
#pragma once
|
2018-11-19 22:45:37 +00:00
|
|
|
#include <cstdint>
|
2020-02-22 21:39:21 +00:00
|
|
|
#include <string>
|
2020-02-24 19:40:45 +00:00
|
|
|
#include <chrono>
|
2018-11-19 22:45:37 +00:00
|
|
|
|
2020-04-07 18:38:56 +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
|
|
|
|
2020-02-22 21:39:21 +00:00
|
|
|
namespace llarp
|
|
|
|
{
|
2021-04-02 15:10:37 +00:00
|
|
|
using Duration_t = std::chrono::milliseconds;
|
2020-02-22 21:39:21 +00:00
|
|
|
using namespace std::literals;
|
2021-04-02 15:10:37 +00:00
|
|
|
|
|
|
|
/// convert to milliseconds
|
|
|
|
uint64_t
|
|
|
|
ToMS(Duration_t duration);
|
2022-05-04 14:37:35 +00:00
|
|
|
|
|
|
|
using DateClock_t = std::chrono::system_clock;
|
|
|
|
using TimePoint_t = DateClock_t::time_point;
|
2021-04-02 15:10:37 +00:00
|
|
|
} // namespace llarp
|
|
|
|
|
|
|
|
using llarp_time_t = llarp::Duration_t;
|