Help for a time seconds loop

I’ve lost a lot of time searching a way without success…
My goal: to have a continuous progression of the seconds hand of a clock (for example a jump every 0.10 second) instead of one jump every second like a quartz clock (see the code below).
What’s the best way to adjust the code? I try to do a refreh every 100 milliseconds with a progression of 0.6°, but bad results…
local function (moveHand()
local timeTable = os.date("*t")
secondHand.rotation = timeTable.sec*6 --angle of 6° every second
end
timer.performWithDelay(1000, clockSecond,-1) --refresh every second [import]uid: 8970 topic_id: 2694 reply_id: 302694[/import]

f2cx

would this help?

http://blancer.com/tutorials/77077/corona-sdk-creating-an-analog-clock-app/

carlos [import]uid: 24 topic_id: 2694 reply_id: 7970[/import]

Thanks Carlos for your response and attention to my post. Unfortunately the code is the same as mine ( 1 jump every second for the second hand). If it’s ok for a quartz clock it’s not for a mechanical watch. Help welcomed…
[import]uid: 8970 topic_id: 2694 reply_id: 8064[/import]

Thanks Carlos for your response and attention to my post. Unfortunately the code is the same as mine ( 1 jump every second for the second hand). If it’s ok for a quartz clock it’s not for a mechanical watch. Help welcomed…
[import]uid: 8970 topic_id: 2694 reply_id: 8065[/import]

Hi f2cX,

try this:

[lua]local function moveHand(event)
local timeTable = os.date("*t")
secondHand.rotation = timeTable.sec*6 --angle of 6° every second
end

runtime:addEventListener(“enterframe”,moveHand)[/lua]

Cheers
Michael [import]uid: 5712 topic_id: 2694 reply_id: 8079[/import]

Doesn’t work! (but thanks)
Always one jump in one second. I think to get seconds with “timeTable.sec” is not the good way. Perhaps something like “CurrentTime.Value.Second” would be better but don’t know how to play the music for all codes… [import]uid: 8970 topic_id: 2694 reply_id: 8164[/import]

Oh, I thought that is what you wanted (the jump). [import]uid: 5712 topic_id: 2694 reply_id: 8165[/import]

My goal: 10 jumps in 1 second (each one of 0.6°, so 10*0.6=6). Thanks… [import]uid: 8970 topic_id: 2694 reply_id: 8224[/import]

so you figured it out?

c [import]uid: 24 topic_id: 2694 reply_id: 9194[/import]

Now it works!
system.getTimer() instead of using timeTable = os.date("*t") was successful!
Thanks for inquiring!
A lot of pleasure with Corona during my first two or three weeks… It would have been superGreat with “scenes management system”, libraries of composants, 3Danimation/transitions effect on objects (my naive attempt was that all was already included…). But hudge potential! thanks and go, go, go!!! [import]uid: 8970 topic_id: 2694 reply_id: 9269[/import]