tailscale/tstime
Josh Bleecher Snyder 9da4181606 tstime/rate: new package
This is a simplified rate limiter geared for exactly our needs:
A fast, mono.Time-based rate limiter for use in tstun.
It was generated by stripping down the x/time/rate rate limiter
to just our needs and switching it to use mono.Time.

It removes one time.Now call per packet.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-07-29 12:56:58 -07:00
..
mono tstime/mono: new package 2021-07-29 12:56:58 -07:00
rate tstime/rate: new package 2021-07-29 12:56:58 -07:00
jitter_test.go tstime: add RandomDurationBetween helper 2021-01-21 07:54:14 -08:00
jitter.go tstime: add RandomDurationBetween helper 2021-01-21 07:54:14 -08:00
tstime_test.go tstime: add Parse3339B, for byte slices 2020-11-19 14:47:11 -08:00
tstime.go tstime: add Parse3339B, for byte slices 2020-11-19 14:47:11 -08:00