Rewrite timer with right calculations.
replace fdiv on idiv