summaryrefslogtreecommitdiff
path: root/crates/tor-proto/src/util.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use coarsetime to build an incoming traffic timestamp.Nick Mathewson2021-11-021-0/+2
| | | | | | | | | | | | | | | | We need this for the circuit timeout estimator (#57). It needs to know "how recently have we got some incoming traffic", so that it can tell whether a circuit has truly timed out, or whether the entire network is down. I'm implementing this with coarsetime, since we need to update these in response to every single incoming cell, and we need the timestamp operation to be _fast_. (This reinstates an earlier commit, f30b2280, which I reverted because we didn't need it at the time.) Closes #179.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+4
This will cause some pain for now, but now is really the best time to do this kind of thing.