lokinet/llarp/util/types.hpp
Jeff 18e1272c76
add gossip info to systemd status
* adds next and last gossip datetimes
* adds a few things for time points, like ostream operator overloads for time point
2022-05-27 13:21:08 -04:00

23 lines
468 B
C++

#pragma once
#include <cstdint>
#include <string>
#include <chrono>
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;
/// 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;