lokinet/llarp/util/types.hpp
Jeff Becker 95cd275cdd
liblokinet additions:
* add lokinet_add_bootstrap_rc function for adding an rc from memory
* prevent stack overflow on error closing connection in quic
* add in memory nodedb
* refactor how convotags are set as active
* add initial stubs for endpoint statistics
* refactor time stuff to be a bit cleaner
* update lnproxy script with more arguments
2021-04-19 06:59:07 -04:00

20 lines
371 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);
} // namespace llarp
using llarp_time_t = llarp::Duration_t;