z = 0shots = 99999interval = 3000t1=os.time()repeat if os.difftime(os.time(),t1)>=0 then t1=os.time()+interval z=z+1 shoot() enduntil z==shots
Can the following script come to an overflow so that the loop hangs forever?
os.difftime: Just returns (unsigned int)t1 - (unsigned int)t2
* os.time is seconds since 1970 similar to a unix timestamp, so camera time calculations including CHDK Lua will be affected by the Y2038 bug.
Started by dayzman Script Writing
Started by Barney Fife General Discussion and Assistance
Started by fbonomi « 1 2 ... 8 9 » Completed and Working Scripts
Started by Salvatore Chiarelli General Discussion and Assistance
Started by vincasr « 1 2 ... 6 7 » Script Writing