schedule time interval incorrect

schedule time interval incorrect
0.0 0



In my main layer, I do:

this->schedule( schedule_selector(MainLayer::update), 1.0/60.0 );

And in the update function, I print out the dt paramter.
If I add the timer with 1.0/60.0 the delta time is 0.033.\ If\ I\ add\ it\ with\ 1.0/30.0\ it\ is0.048.

These times are not right.
Do I misunderstand the schedule function?


deltaTime is the amount of running time that has passed since the last time update was called.
Schedule interval time (in your case which is 1/60 or 1/30) and delta time is not the same thing.