Currently lokinet uses llarp_time_t (which is milliseconds) everywhere for times. Part of the justification was that it makes serialization easier, but conversely it makes other parts of the code a bit more complicated.
It would be nice to refactor so that std::chrono duration types get used instead (for compiler-defined duration cast math), being mindful of the existing serialization requirements.
(This is low priority)
Currently lokinet uses
llarp_time_t(which is milliseconds) everywhere for times. Part of the justification was that it makes serialization easier, but conversely it makes other parts of the code a bit more complicated.It would be nice to refactor so that std::chrono duration types get used instead (for compiler-defined duration cast math), being mindful of the existing serialization requirements.
(This is low priority)