Here are the worst things: 1. *Seconds = seconds; is dead code. 2. There is no advante in making seconds static. 3. You cannot use timer() over two frames. Read the documentation. Besides timer() is absolutely not necesary here. time_step is totally sufficient.
Always learn from history, to be sure you make the same mistakes again...