This might not be considered a bug because it is documented correctly but it is wierd.
millisecs() returns Milliseconds since computer was turned on.
well I use that function to determine if an amount of time has passed by doing:
if millisecs()-lastUpdate > frameSpeed then ....
well for the first time, I had code that was working perfectly and now doesn't because my machine has not been rebooted in a very long time. Millisecs() is now returning a negative number which screws up the code shown above.
shouldn't millisecs() be returning the current time in milliseconds instead of the number of milliseconds from the time the machine was turned on?
If not what is the recommended fix?
millisecs() returns Milliseconds since computer was turned on.
well I use that function to determine if an amount of time has passed by doing:
if millisecs()-lastUpdate > frameSpeed then ....
well for the first time, I had code that was working perfectly and now doesn't because my machine has not been rebooted in a very long time. Millisecs() is now returning a negative number which screws up the code shown above.
shouldn't millisecs() be returning the current time in milliseconds instead of the number of milliseconds from the time the machine was turned on?
If not what is the recommended fix?