tailscale/tstime
Joe Tsai e42be5a060
tstime/mono: fix Time.Unmarshal (#8480)
Calling both mono.Now() and time.Now() is slow and
leads to unnecessary precision errors.
Instead, directly compute mono.Time relative to baseMono and baseWall.
This is the opposite calculation as mono.Time.WallTime.

Updates tailscale/corp#8427

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2023-06-28 15:16:52 -07:00
..
mono tstime/mono: fix Time.Unmarshal (#8480) 2023-06-28 15:16:52 -07:00
rate tstime/rate: add Value (#7491) 2023-03-09 11:13:09 -08:00
jitter_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
jitter.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tstime_test.go tstime: rely on stdlib parse functionality (#7482) 2023-03-06 18:05:51 -08:00
tstime.go tstime: rely on stdlib parse functionality (#7482) 2023-03-06 18:05:51 -08:00