]> git.scottworley.com Git - vopamoi/commit - vopamoi.ts
Use a monotonic clock
authorScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 06:33:53 +0000 (22:33 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 20:21:55 +0000 (12:21 -0800)
commit27c6778445473dedef08331260f1db3f2bea75ef
tree38c51c48c588b9f64cb833d43f02eb0dd79de2ac
parent8ca3cda9da4db4ac0bd05462b54e04fabbf75451
Use a monotonic clock

Generally assume that clock values always increase to simplify reasoning
everywhere clock values are used.  Then enforce that assumption.

Clock values don't really, truly always go up because page reloads &
multiple devices, but since I'm not currently planning to spend the
effort that would be required to perfectly handle this in all cases,
making it happen in fewer cases is a win (rather than just making bugs
I want to fix harder to reproduce).
vopamoi.ts