Open yurapyon opened 4 years ago
Having a good way of dealing with monotonic time early on would be very good. Erlang docs on time with more explanation shows some of the complexity. This can also help avoid making api/design decisions which upset people later (eg. this Go discussion )
Hi! Looking at the Rust source for
Instant::now()
link, it seems that on some operating systems and hardware, the system clock may not be guaranteed to be monotonically increasing.I noticed Zig's Timer doesn't account for this. Rust goes for a global mutex as the answer, but this seems more fitting for an atomic?