1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/messages
Jason Rhinelander b6924f3ef1
Replace duration/timestamp formats with functions
We're defining formats for std::chrono types, which feels wrong (because
fmt itself also has these), so just replace them with functions:

short_time_from_now(...) gives a short "in 14m12s" or "5.123s ago" time
span relative to now, given a time point.  Precision gets reduced for
larger deviations from now (e.g. "4h12m ago").

ToString(Duration_t) gives a string such as "-3h22m02.123s" for a
duration.
2022-10-26 21:20:14 -03:00
..
dht_immediate.cpp llarp_buffer_t: rename badly named operator== 2022-09-19 20:25:51 -03:00
dht_immediate.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
discard.hpp llarp_buffer_t: rename badly named operator== 2022-09-19 20:25:51 -03:00
link_intro.cpp llarp_buffer_t: rename badly named operator== 2022-09-19 20:25:51 -03:00
link_intro.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
link_message.hpp replace LLARP_PROTO_VERSION macro 2022-05-28 13:18:43 -04:00
link_message_parser.cpp llarp_buffer_t: rename badly named operator== 2022-09-19 20:25:51 -03:00
link_message_parser.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
relay.cpp replace LLARP_PROTO_VERSION macro 2022-05-28 13:18:43 -04:00
relay.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
relay_commit.cpp Replace duration/timestamp formats with functions 2022-10-26 21:20:14 -03:00
relay_commit.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
relay_status.cpp llarp_buffer_t: rename badly named operator== 2022-09-19 20:25:51 -03:00
relay_status.hpp idempotent flush queues on path builds 2022-04-12 11:48:08 -04:00