millisecs() returning negative number
BlitzMax Forums/BlitzMax Programming/millisecs() returning negative number
| ||
Anyone out there ever observed millisecs() returning negative numbers? The docs says it returns the number of milliseconds since the machine was turned on. If it is an int, that would give it's max value as 2^31-1 millisecs before it overflows and becomes negative. That's less than 25 days. I get that easily with my habit of hibernating my machine rather than turning it off. Casting it to long doesn't help. What should I do to handle this? Thanks! |
| ||
Found an answer here: http://www.blitzbasic.com/Community/posts.php?topic=64886#724318 |