You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/util
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.
2 years ago
..
logging Fix buffer_printer overflow 2 years ago
meta Remote util::Printer and related cruft 2 years ago
thread Slightly DRY thread-setting code, fix warning 2 years ago
algorithm.hpp add forgotten file again 3 years ago
aligned.hpp llarp/profiling: refactor to use oxenc producer/consumer 2 years ago
bencode.cpp Replace logging with oxen-logger 2 years ago
bencode.h standardize include format and pragma once 3 years ago
bencode.hpp Add binary file slurp/dump utility functions 2 years ago
bits.hpp standardize include format and pragma once 3 years ago
buffer.cpp small optimizations and fixes 2 years ago
buffer.hpp small optimizations and fixes 2 years ago
common.hpp standardize include format and pragma once 3 years ago
compare_ptr.hpp refactor dns subsystem 2 years ago
copy_or_nullptr.hpp standardize include format and pragma once 3 years ago
decaying_hashset.hpp publish our rc out to the network when we regenerate them 2 years ago
decaying_hashtable.hpp Merge pull request #1541 from majestrate/lns-consensus-2021-02-19 3 years ago
easter_eggs.cpp changeset for windows port 2 years ago
exceptions.hpp fix up log statements 2 years ago
file.cpp Try to appease android's crappy toolchain 2 years ago
file.hpp Add binary file slurp/dump utility functions 2 years ago
formattable.hpp Remote util::Printer and related cruft 2 years ago
fs.hpp Add binary file slurp/dump utility functions 2 years ago
json.cpp standardize include format and pragma once 3 years ago
json.hpp standardize include format and pragma once 3 years ago
logging.hpp omq rpc log subscription 2 years ago
lokinet_init.h changeset for windows port 2 years ago
mem.cpp standardize include format and pragma once 3 years ago
mem.h standardize include format and pragma once 3 years ago
mem.hpp standardize include format and pragma once 3 years ago
priority_queue.hpp add util::ascending_priority_queue type 2 years ago
status.hpp standardize include format and pragma once 3 years ago
str.cpp changeset for windows port 2 years ago
str.hpp changeset for windows port 2 years ago
time.cpp Replace duration/timestamp formats with functions 2 years ago
time.hpp Replace duration/timestamp formats with functions 2 years ago
types.hpp Fallback bootstrap router build parameter 2 years ago