Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Timers works wrong:( — Gideros Forum

Timers works wrong:(

unlyingunlying Guru
edited July 2012 in Bugs and issues
Hello. Currently i have to use timers in my app. I was confused after that because it doesn't works as it should works. We expect events on same time every time when timer tick. But it isn't same time.
Here it is very simple app
timer = Timer.new(100, 10)
 
function onTimer(e)
	print(os.timer())
 
end
 
timer:addEventListener(Event.TIMER, onTimer)
timer:start()
Os.timer() should be printed every 100ms. It is. But not every time.

532.43867148027
532.53866848176
532.63867357923
532.7386786767
532.83868437387
532.93868437387
533.05472820008
533.1547488898
533.25475128861
533.37170576224
For me it is not problem now, because i check current position of sound in my app. But may be you now how to fix this?

Comments

Sign In or Register to comment.