News for hackers. Stuff that matters.
Re:The code worked differently when the moon was full (2021) by Dwedit on Thursday February 22, 2024 @09:58PM (#39476437)
Yeah, you pretty much need to treat a millisecond timestamp as an opaque value, only using the Int you get when you subtract two of them. Doing that completely avoids the issues from timestamps being negative or wrapping around.

I've seen games that crash if your timestamps were negative. So if your computer has been on for a while, and a game isn't running properly, reboot.

There are no comments on this comment yet.