How much time since last frame

Even if the last frame was several days ago?

I was trying this = os.time() - self.startTime

I read here that that doesn’t work because Codea is 32bit.

So then I thought about"*t")

I could save the data and then subtract it from the current time like above but what if the saved time was before a leap day? Or if you crossed into DST between runs?

Seems like there should be a easier way.

Any ideas


Codea 2.0 is 64-bit, actually. os.time() doesn’t store the system time, though, it is an approximation of the CPU time used by the program in seconds.

I believe the only solution would be“*t”)